This is an archive of the discontinued LLVM Phabricator instance.

[llvm-objcopy] Support bfdname "elf32-hexagon"
ClosedPublic

Authored by sidneym on Apr 6 2020, 12:35 PM.

Details

Summary

Adds elf32-hexagon support and updates testcases.

Diff Detail

Event Timeline

sidneym created this revision.Apr 6 2020, 12:35 PM
MaskRay accepted this revision.Apr 6 2020, 1:12 PM

LGTM.

llvm/tools/llvm-objcopy/CopyConfig.cpp
276

I would expect the list to be ordered lexicographically on the EM_* values. Unfortunately it isn't.

This revision is now accepted and ready to land.Apr 6 2020, 1:12 PM
MaskRay retitled this revision from [llvm-objcopy] Add output support for elf32-hexagon to [llvm-objcopy] Support bfdname "elf32-hexagon".Apr 6 2020, 1:23 PM
This revision was automatically updated to reflect the committed changes.
jhenderson added inline comments.Apr 7 2020, 12:45 AM
llvm/test/tools/llvm-objcopy/ELF/binary-output-target.test
33–34

FWIW, I'd probably have put this RUN line in the same order as the checks below. If you're okay doing some reordering, that would be great, but I think there is more than one case that needs it.

llvm/test/tools/llvm-objcopy/ELF/cross-arch-headers.test
109–110

Same comment as in the other test. Matching the cases with the check order would make a lot of sense.