]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Use "MS" for .debug_str
authorTom Tromey <tromey@adacore.com>
Fri, 23 May 2025 23:48:30 +0000 (17:48 -0600)
committerTom Tromey <tromey@adacore.com>
Tue, 24 Jun 2025 14:31:21 +0000 (08:31 -0600)
commitbaba7c9a2ae10eb19c8eff6f5c981268b1f3831e
tree706873840993ca7a705b0dbea7863c12dad3c430
parent62b8f22dd86639773142cfe14c1d68562048882e
Use "MS" for .debug_str

I changed my system linker to 'mold', but then I saw some gdb test
failures.  This patch fixes a subset of the failures.

dw2-strp.exp was failing, and investigating showed that there were two
.debug_str sections.  I tracked this down to the .S file not using the
correct section flags.

This patch fixes this problem, plus the other instances I could find.
(Strangely, these did not all cause problems, however.)  I also
changed the DWARF assembler to always use these flags for .debug_str.
gdb/testsuite/gdb.dwarf2/dw2-modula2-self-type.S
gdb/testsuite/gdb.dwarf2/dw2-simple-locdesc.S
gdb/testsuite/gdb.dwarf2/dw2-strp.S
gdb/testsuite/gdb.dwarf2/pr11465.S
gdb/testsuite/lib/dwarf.exp