This is an archive of the discontinued LLVM Phabricator instance.

[llvm-objdump] Support PLT decoding for aarch64_be
ClosedPublic

Authored by MaskRay on Feb 6 2021, 12:54 PM.

Diff Detail

Event Timeline

MaskRay created this revision.Feb 6 2021, 12:54 PM
MaskRay requested review of this revision.Feb 6 2021, 12:54 PM
Herald added a project: Restricted Project. · View Herald TranscriptFeb 6 2021, 12:54 PM

Not being experienced with AARCH64, what does the endianness impact? Does it affect the encoding of instructions, because if so, I'm surprised that the .plt section disassembles fine in this case.

llvm/test/tools/llvm-objdump/ELF/AArch64/plt.test
9–11

Any particular reason you've removed the new line? The line is getting a little long here.

Not being experienced with AARCH64, what does the endianness impact? Does it affect the encoding of instructions, because if so, I'm surprised that the .plt section disassembles fine in this case.

Instructions use little-endian. Data is big-endian, but it is unrelated.

MaskRay marked an inline comment as done.Feb 8 2021, 12:44 AM
MaskRay added inline comments.
llvm/test/tools/llvm-objdump/ELF/AArch64/plt.test
9–11

86 bytes... which is fine

jhenderson accepted this revision.Feb 8 2021, 12:50 AM

Not being experienced with AARCH64, what does the endianness impact? Does it affect the encoding of instructions, because if so, I'm surprised that the .plt section disassembles fine in this case.

Instructions use little-endian. Data is big-endian, but it is unrelated.

Okay, thanks. LGTM.

This revision is now accepted and ready to land.Feb 8 2021, 12:50 AM

LGTM too, thanks for updating for BE.

This revision was landed with ongoing or failed builds.Feb 8 2021, 8:50 AM
This revision was automatically updated to reflect the committed changes.
MaskRay marked an inline comment as done.