ld: pass -g for ld-elf testsmaster
commit17c78a23491ce76fd6d21cdbf2db3c0cf02145e0
authorSam James <sam@gentoo.org>
Sat, 29 Jun 2024 10:07:18 +0000 (29 11:07 +0100)
committerSam James <sam@gentoo.org>
Sat, 29 Jun 2024 16:13:14 +0000 (29 17:13 +0100)
tree625749ba9328a0a62e6af8c0e6297406cf3c1afb
parent17de5033a28cd04f9e16730b353ad7c08ec5d8c1
ld: pass -g for ld-elf tests

The "DWARF parse during linker error" and "Build warn libbar.so" tests
require debug information.

configure defaults to "-O2 -g" but if overriding *FLAGS when building
tests, this might be lost. Explicitly pass -g given these tests require
it.

Originally reported downstream in Gentoo at https://bugs.gentoo.org/934149.

ld/
* testsuite/ld-elf/dwarf.exp: Pass -g for "DWARF parse during linker error".
* testsuite/ld-elf/shared.exp: Ditto for "Build warn libbar.so".
ld/testsuite/ld-elf/dwarf.exp
ld/testsuite/ld-elf/shared.exp