[PATCH] D60773: [llvm-objcopy] Support full list of bfd targets that lld uses.

Jordan Rupprecht via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 16 06:38:29 PDT 2019


rupprecht created this revision.
rupprecht added reviewers: jhenderson, jakehehrlich.
Herald added subscribers: llvm-commits, atanasyan, krytarowski, sdardis, emaste.
Herald added a reviewer: espindola.
Herald added a reviewer: alexshap.
Herald added a project: LLVM.

This change takes the full list of bfd targets that lld supports (see `ScriptParser.cpp`), including generic handling for `*-freebsd` targets (which uses the same settings but with a FreeBSD OSABI). In particular this adds mips support for `--output-target` (but not yet via `--binary-architecture`).

lld and llvm-objcopy use their own different custom data structures, so I'd prefer to check this in as-is (add support directly in llvm-objcopy, including all the test coverage) and do a separate NFC patch(s) that consolidate the two by putting this mapping into libobject.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D60773

Files:
  llvm/test/tools/llvm-objcopy/ELF/bad-output-format.test
  llvm/test/tools/llvm-objcopy/ELF/cross-arch-headers.test
  llvm/tools/llvm-objcopy/CopyConfig.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D60773.195367.patch
Type: text/x-patch
Size: 14734 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190416/f91064d9/attachment.bin>


More information about the llvm-commits mailing list