mirror of
https://github.com/rui314/mold.git
synced 2024-10-04 08:37:28 +03:00
8c5e4df741
GCC creates a .debug_macro section if -g3 is given. That section is in a comdat group, but the section is directly referred by another section, which is a violation of the ELF spec. If a section is deduplicated, we handle any references to that section as if they had value 0. But that causes a mysterious gdb slowdown. So we can't set 0 for a dead .debug_macro section. In this commit, we simply stop deduplicating .debug_macro sections. This will bloat up debug info, but that's better than producing an effectively non-debuggable binary. Fixes https://github.com/rui314/mold/issues/357 Fixes https://github.com/rui314/mold/issues/438 |
||
---|---|---|
.. | ||
elf | ||
macho | ||
gentoo-test.sh | ||
Makefile.darwin | ||
Makefile.linux |