This allows linking code with dwarf exception handling.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
lgtm, this is consistent with this comment in the ELF side:
// .eh_frame is horribly special and can reference discarded sections. To // avoid having to parse and recreate .eh_frame, we just replace any // relocation in it pointing to discarded sections with R_*_NONE, which // hopefully creates a frame that is ignored at runtime.
We might want to start using associative comdats to avoid making object files like this on win64, though.
COFF/Chunks.h | ||
---|---|---|
193 | I wonder if you actually need startswith. Why don't you use ==? |
COFF/Chunks.h | ||
---|---|---|
193 | I remembered seeing section names like .eh_frame$funcName somewhere, but now I can't really find that (perhaps it even was in some tests on ELF), and linking succeeds with plain ==. So I can change it to ==, and I can see later if I ever need startswith. |
I wonder if you actually need startswith. Why don't you use ==?