aboutsummaryrefslogtreecommitdiff
path: root/bfd/libcoff-in.h
diff options
context:
space:
mode:
authorJan Beulich <jbeulich@suse.com>2022-05-19 12:45:55 +0200
committerJan Beulich <jbeulich@suse.com>2022-05-19 12:45:55 +0200
commit20bed3bb3579d581b909e2319523331cd76bca57 (patch)
treefe1f421b9587443ffcf3e23b8266e1c112f7d80d /bfd/libcoff-in.h
parentf0a53c9c89316a0e362fd671f566f453e451b21c (diff)
downloadgdb-20bed3bb3579d581b909e2319523331cd76bca57.zip
gdb-20bed3bb3579d581b909e2319523331cd76bca57.tar.gz
gdb-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-in.h')
-rw-r--r--bfd/libcoff-in.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/libcoff-in.h b/bfd/libcoff-in.h
index e5bb6ac..e1f9e60 100644
--- a/bfd/libcoff-in.h
+++ b/bfd/libcoff-in.h
@@ -325,8 +325,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