diff options
author | Jan Beulich <jbeulich@suse.com> | 2022-05-19 12:45:55 +0200 |
---|---|---|
committer | Jan Beulich <jbeulich@suse.com> | 2022-05-19 12:45:55 +0200 |
commit | 20bed3bb3579d581b909e2319523331cd76bca57 (patch) | |
tree | fe1f421b9587443ffcf3e23b8266e1c112f7d80d /bfd/libcoff.h | |
parent | f0a53c9c89316a0e362fd671f566f453e451b21c (diff) | |
download | binutils-20bed3bb3579d581b909e2319523331cd76bca57.zip binutils-20bed3bb3579d581b909e2319523331cd76bca57.tar.gz binutils-20bed3bb3579d581b909e2319523331cd76bca57.tar.bz2 |
COFF: use hash for string table also when copying / stripping
Otherwise the string table may grow and hence e.g. change a final binary
(observed with PE/COFF ones) even if really there's no change. Doing so
in fact reduces the overall amount of code, and in particular the number
of places which need to remain in sync.
Afaics there's no real equivalent to the "traditional_format" field used
when linking, so hashing is always enabled when copying / stripping.
Diffstat (limited to 'bfd/libcoff.h')
-rw-r--r-- | bfd/libcoff.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/libcoff.h b/bfd/libcoff.h index 024a648..a884a80 100644 --- a/bfd/libcoff.h +++ b/bfd/libcoff.h @@ -329,8 +329,8 @@ extern void coff_mangle_symbols extern bool coff_write_symbols (bfd *); extern bool coff_write_alien_symbol - (bfd *, asymbol *, struct internal_syment *, union internal_auxent *, - bfd_vma *, bfd_size_type *, asection **, bfd_size_type *); + (bfd *, asymbol *, struct internal_syment *, bfd_vma *, + struct bfd_strtab_hash *, bool, asection **, bfd_size_type *); extern bool coff_write_linenumbers (bfd *); extern alent *coff_get_lineno |