]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Stop the BFD library from automatically converting OS and PROC specific symbol sectio...
authorNick Clifton <nickc@redhat.com>
Thu, 20 Feb 2020 13:08:29 +0000 (13:08 +0000)
committerNick Clifton <nickc@redhat.com>
Thu, 20 Feb 2020 13:08:29 +0000 (13:08 +0000)
commit00e49dff20421e0f8f28ee74cec12a0bae8f1b82
treeb5ad074f9e41fd5fdcdfae88cfac0c517b4a79f8
parentd13c7322fe1266984024644154003a19664610ea
Stop the BFD library from automatically converting OS and PROC specific symbol section indicies to SHN_ABS, and provide a hook for backends to decide how such indicies should be processed.

* elf-bfd.h (struct elf_backend_data): Add symbol_section_index
callback.
* elfxx-target.h (elf_backend_symbol_section_index): Provide
default definition.
(elfNN_bed): Initialise the symbol_section_index field.
* elf.c (swap_out_syms): Call symbol_section_index, if defined, on
OS and PROC specific section indicies.  Warn if converting other
reserved incidies to SHN_ABS.
bfd/ChangeLog
bfd/elf-bfd.h
bfd/elf.c
bfd/elfxx-target.h