Currently, LLD segfaults when linker script attempts to discard
one of the hash sections. This patch fixes that.
Details
Diff Detail
Event Timeline
Generally looking good, but ...
ELF/LinkerScript.cpp | ||
---|---|---|
363–364 | Is that actually common? Could you give me an example? |
ELF/LinkerScript.cpp | ||
---|---|---|
363–364 | I am not saying it is common (I am fixing crash here first of all), but there is nothing wrong with that either. |
LGTM
ELF/LinkerScript.cpp | ||
---|---|---|
363–364 | "normal" sounded like it was somewhat common. Maybe I'd say "You can discard .hash and .gnu.hash sections by linker scripts. Since they are synthesized sections, we need to handle them differently than other regular sections." |
Is that actually common? Could you give me an example?