aboutsummaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2022-12-23 09:27:14 +1030
committerAlan Modra <amodra@gmail.com>2022-12-23 10:35:38 +1030
commit160a943ff8aa0dd9105164f10d4bfca9db872999 (patch)
treef8f86d35b0a0d504dae87b91f67d9b4e0472cae9 /sim
parent2ac6aa431ecf8bf6afdc18020f3d6e55458df223 (diff)
downloadgdb-160a943ff8aa0dd9105164f10d4bfca9db872999.zip
gdb-160a943ff8aa0dd9105164f10d4bfca9db872999.tar.gz
gdb-160a943ff8aa0dd9105164f10d4bfca9db872999.tar.bz2
COFF build-id writes uninitialised data to file
1) The first write in write_build_id wrote rubbish past the struct external_IMAGE_DEBUG_DIRECTORY, which was later overwritten with correct data. No user visible problem there, except that tools like valgrind complain. 2) The size for the pdb name was incorrectly calculated. * emultempl/pe.em (write_build_id): Write the debug directory, not the entire section contents. (setup_build_id): Add size for the base name of pdb_name, not the full path. * emultempl/pep.em: Likewise. * testsuite/ld-pe/pdb2-section-contrib.d: Update.
Diffstat (limited to 'sim')
0 files changed, 0 insertions, 0 deletions