https://bugs.llvm.org/show_bug.cgi?id=41525
Bug ID: 41525
Summary: Stop assuming there's a symbol table when loading
relocations
Product: tools
Version: trunk
Hardware: PC
OS: Windows NT
Status: NEW
Severity: normal
Priority: P
Component: llvm-objcopy/strip
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected],
[email protected],
[email protected],
[email protected], [email protected]
It is possible to see an ELF with a relocation section but no symbol table, as
not all relocations require symbols. However, llvm-objcopy assumes that there
is a symbol table if it sees a relocation section, and proceeds to try to use
it when loading relocations, resulting in a crash. The offending code is the
initRelocations function.
In the event that the symbol table does not exist (i.e. sh_link is 0), we
should consider emitting an error if any of the relocations have a non-zero
symbol index.
--
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