You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: GC of sections referenced from debug info (#1787)
On RISC-V and LoongArch64, debug info sections reference local symbols
(e.g. `.LFB0`, `.LFE0`) in code sections via relocations. Previously,
processing these relocations during the GC graph traversal sent symbol
requests that loaded the referenced code sections, defeating
`--gc-sections`.
Fix this by not processing debug relocations during the layout phase at
all. Instead, resolve them entirely at write time in
`apply_debug_relocation()`:
- For symbols in live sections, compute the address from the section
resolution plus the symbol's offset.
- For symbols in GC'd sections, fall through to the existing DWARF
tombstone value path.
0 commit comments