COFF: use hash for string table also when copying / stripping
authorJan Beulich <jbeulich@suse.com>
Thu, 19 May 2022 10:45:55 +0000 (12:45 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 19 May 2022 10:45:55 +0000 (12:45 +0200)
commit20bed3bb3579d581b909e2319523331cd76bca57
treefe1f421b9587443ffcf3e23b8266e1c112f7d80d
parentf0a53c9c89316a0e362fd671f566f453e451b21c
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.
bfd/coffgen.c
bfd/cofflink.c
bfd/libcoff-in.h
bfd/libcoff.h