This is an archive of the discontinued LLVM Phabricator instance.

Allow EXIDX information display using llvm-readobj for executables
Needs ReviewPublic

Authored by khemant on Jun 5 2017, 12:50 PM.

Details

Reviewers
compnerd
echristo
Summary

The ARMEHABIParser in llvm-readobj assumes relocations are around and tries to find the .ARM.extab slot using this assumption. When an executable is used to view this information, this assumption is invalid. The addresses are already known using PREL31. This patch adds this functionality in the parser.

Diff Detail

Repository
rL LLVM

Event Timeline

khemant created this revision.Jun 5 2017, 12:50 PM
compnerd edited edge metadata.Jun 29 2017, 10:51 PM

Would it be possible to use YAML and yaml2obj to create the test input?

Does obj2yaml support generating YAML from executables? Last time I checked it did not. This change only relates to executable.