Set the thumb flag for thumb symbols coming from an ELF file
Without setting the flag there is no way to determine if a symbol
points to an arm or to a thumb function as the LSB of the address
masked out in all getter function.
Differential D17956
Set the thumb flag for thumb symbols coming from an ELF file tberghammer on Mar 8 2016, 3:59 AM. Authored by
Details Set the thumb flag for thumb symbols coming from an ELF file Without setting the flag there is no way to determine if a symbol
Diff Detail
Event TimelineComment Actions Currently I don't see any easy way to test this as the thumb flag is only used by llvm-objdump when dumping a MachO file. The ELF dumping code in llvm-objdump should be fixed to use this flag as well as it currently fails to disassemble thumb code but doing it requires a significant amount of refactor. I plan to create a fix for that issue but I don't know when I will have time for doing it. If you have any suggestion about how can I write a standalone test for this change I would appreciate any suggestion. P.S. I detected the issue while working on an external library using the object file parsing logic from llvm. |