[gdb/testsuite] Fix build-ids in gdb.dwarf2/dwzbuildid.exp
authorTom de Vries <tdevries@suse.de>
Fri, 8 Sep 2023 10:27:02 +0000 (12:27 +0200)
committerTom de Vries <tdevries@suse.de>
Fri, 8 Sep 2023 10:27:02 +0000 (12:27 +0200)
commit7993baae024b283113aeff34a1880e1b0360b711
tree2342a40bbe3e8e12d7b25ec80852c43e82190fc7
parent932a49fff332ba4921dc9e38cf45bf65a301f2c6
[gdb/testsuite] Fix build-ids in gdb.dwarf2/dwzbuildid.exp

When looking at the execs from test-case gdb.dwarf2/dwzbuildid.exp using
readelf, I run into:
...
$ readelf -w dwzbuildid-ok > READELF
readelf: Warning: Corrupt debuglink section: .gnu_debugaltlink
readelf: Warning: Build-ID is too short (0x6 bytes)
...

Fix this by ensuring the Build-IDs are the required 20 bytes.

Tested on x86_64-linux.
gdb/testsuite/gdb.dwarf2/dwzbuildid.exp