coff/pe/xcoff and --extract-symbols
authorAlan Modra <amodra@gmail.com>
Fri, 28 Jul 2023 03:14:17 +0000 (12:44 +0930)
committerAlan Modra <amodra@gmail.com>
Fri, 28 Jul 2023 04:41:27 +0000 (14:11 +0930)
commit41c8b9f097ecabeb17b605ee6e0ceffac9a6243a
tree18d602794d56959e9b04717c3781213c516deedc
parent6551c119bf788b6b9e3475e5bacf21d589ba9405
coff/pe/xcoff and --extract-symbols

This fixes failure of the "extract symbols" test for rs6000, where
--extract-symbols generates a non-zero sized .text.  By the look of
coffcode.h the same problem might occur for coff/pe too, but doesn't
happen to trigger a test failure.

bfd/
* coffcode.h (coff_compute_section_file_positions): Don't
adjust size of !SEC_LOAD sections.
binutils/
* objcopy.c (setup_section): Clear SEC_LOAD for --extract-symbol.
bfd/coffcode.h
binutils/objcopy.c