https://bugs.llvm.org/show_bug.cgi?id=41832
Bug ID: 41832
Summary: ELF dynamic_relocation_sections treats dynamic tag
values as offsets
Product: libraries
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: Object
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
The ELF gABI states that the interpretation of DT_REL/DT_RELA/DT_JMPREL is a
d_ptr, which is the virtual address of the appropriate section in the ELF. The
dynamic_relocation_sections method treats them as offsets, which is incorrect.
The address of a section is rarely the same as its offset. This means that
llvm-objdump --dynamic-reloc (the only current client) is broken for most
cases. This hasn't been picked up before because there are no tests for that
feature, as far as I can tell!
--
You are receiving this mail because:
You are on the CC list for the bug._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs