[llvm-dev] Extending llvm-objcopy to support Mach-O

Martin Storsjö via llvm-dev
Tue, 02 Oct 2018 18:25:30 -0000

On Mon, 1 Oct 2018, Alexander Shaposhnikov via llvm-dev wrote:

> Currently, llvm-objcopy only supports ELF files while binutils' objcopy
can
> handle Mach-O files as well.

binutils' objcopy also supports COFF

> Any thoughts, concerns, or strong preferences ?

No particular, except that I'm considering having a go at starting to
implement COFF codepaths for this as well (mainly for a strip tool, and
for the --only-keep-debug and --add-gnu-debuglink actions). I might (no
guarantees though) start working on that within a few months, unless
there's already someone else working on that. (I remember seeing some
other discussions about that but nothing that ever made it into patches.)

// Martin