]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
ELF: Pass bfd_link_info to merge_gnu_properties
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 12 Jun 2017 14:37:15 +0000 (07:37 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 12 Jun 2017 14:37:56 +0000 (07:37 -0700)
commit5c3ce2bc8adea307917d3bfeef53114795764db6
treea3481bc43858592cf3fd95099928cf454f61ecc5
parent3704e3589d3d187fbf76e688388b1a92fd627c8d
ELF: Pass bfd_link_info to merge_gnu_properties

Pass struct bfd_link_info * to merge_gnu_properties to give backend
control of how GNU properties are merged based on linker command line
options.

* elf-bfd.h (elf_backend_data): Add struct bfd_link_info *
to merge_gnu_properties.
* elf-properties.c (elf_merge_gnu_properties): Add struct
bfd_link_info * and pass it to merge_gnu_properties.
(elf_merge_gnu_property_list): Add struct bfd_link_info *
and pass it to elf_merge_gnu_properties.
(_bfd_elf_link_setup_gnu_properties): Pass info to
elf_merge_gnu_property_list.
* elf32-i386.c (elf_i386_merge_gnu_properties): Add struct
bfd_link_info *.
* elf64-x86-64.c (elf_x86_64_merge_gnu_properties): Likewise.
bfd/ChangeLog
bfd/elf-bfd.h
bfd/elf-properties.c
bfd/elf32-i386.c
bfd/elf64-x86-64.c