1
1
mirror of https://github.com/rui314/mold.git synced 2024-10-04 08:37:28 +03:00
mold/test
Rui Ueyama 8c5e4df741 [ELF] Ignore comdat groups GCC emits for .debug_macro
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
2022-04-22 12:24:22 +08:00
..
elf [ELF] Ignore comdat groups GCC emits for .debug_macro 2022-04-22 12:24:22 +08:00
macho [ELF] Generalize tests 2022-04-02 16:53:41 +08:00
gentoo-test.sh Fix Gentoo build script as build-static.sh is gone 2022-02-19 21:57:36 +09:00
Makefile.darwin [Mach-O] Make make test to work on macOS 2021-09-28 18:47:24 +09:00
Makefile.linux [Mach-O] Make make test to work on macOS 2021-09-28 18:47:24 +09:00