This is an archive of the discontinued LLVM Phabricator instance.

[llvm-objcopy] Fix sparc target endianness
ClosedPublic

Authored by seiya on Jun 13 2019, 4:16 AM.

Details

Summary

AFAIK, the "sparc" target is big endian and the target for 32-bit little-endian SPARC is denoted as "sparcel". This patch fixes the endianness of "sparc" target and adds "sparcel" target for 32-bit little-endian SPARC.

Diff Detail

Event Timeline

seiya created this revision.Jun 13 2019, 4:16 AM
jhenderson added inline comments.Jun 13 2019, 4:34 AM
llvm/test/tools/llvm-objcopy/ELF/binary-input-arch.test
57–58

Add {{$}} to the end of this line, or it could spuriously match against sparcel.

seiya updated this revision to Diff 204492.Jun 13 2019, 5:01 AM

Address a review comment.

seiya marked an inline comment as done.Jun 13 2019, 5:01 AM
This revision is now accepted and ready to land.Jun 13 2019, 5:53 AM
This revision was automatically updated to reflect the committed changes.