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
Event Timeline
test/ELF/linkerscript/eh-frame-reloc-out-of-range.s | ||
---|---|---|
6 | 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. |
Do you need PHDRS for this testcase ?