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

James Henderson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 16 07:38:12 PDT 2019


jhenderson added inline comments.


================
Comment at: llvm/tools/llvm-objcopy/CopyConfig.cpp:277
     // Name, {EMachine, OSABI, 64bit, LittleEndian}
     {"elf32-i386", {ELF::EM_386, ELF::ELFOSABI_NONE, false, true}},
+    {"elf32-iamcu", {ELF::EM_IAMCU, ELF::ELFOSABI_NONE, false, true}},
----------------
arichardson wrote:
> All of these now use `ELF::ELFOSABI_NONE`. I wonder if we can remove the `ELF::ELFOSABI_NONE` from the initializer by adding a constructor with three arguments or making it the last member of the struct and adding a default initializer.
+1 to this. That was how it used to be before I added the freebsd support recently.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D60773/new/

https://reviews.llvm.org/D60773





More information about the llvm-commits mailing list