Such sections don't belong to any specific file, so getLocation<ELFT>() will crash for them. One of possible cases is
out of range relocation in .eh_frame section
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
test/ELF/linkerscript/eh-frame-reloc-out-of-range.s | ||
---|---|---|
6 ↗ | (On Diff #91544) | By default "A" (eh_frame and eh_frame_hdr) and "AX" (text) sections go to the same segment. If you remove PHDRS you'll get very large (> 60GB) output file. |