Page MenuHomePhabricator

[llvm-objcopy] Support the rest of the ELF formats

Authored by jakehehrlich on Nov 13 2017, 1:27 PM.



We haven't been supporting anything but ELF64LE since the start. Luckily this was always accounted for and the change is pretty trivial. B35281 requests this change for ELF32LE. This change adds support for ELF32LE, ELF64BE, and ELF32BE with all supported features that already existed for ELF64LE.

Diff Detail


Event Timeline

jakehehrlich created this revision.Nov 13 2017, 1:27 PM
davide added a subscriber: davide.Nov 13 2017, 6:12 PM
davide added inline comments.
213 ↗(On Diff #122716)

auto *

Replaced explicit types with auto as recommended. Thanks Davide!

jhenderson accepted this revision.Nov 14 2017, 2:52 AM


I don't see any sensible way of doing this, but it would be really nice if every single one of our test cases could be run for all 4 forms, as I believe the same behaviour should be present in all of them. The test coverage for this change though is good enough though. Thanks.

This revision is now accepted and ready to land.Nov 14 2017, 2:52 AM
This revision was automatically updated to reflect the committed changes.