diff options
author | Vivek Das Mohapatra <vivek@collabora.com> | 2020-12-14 17:25:51 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-12-15 18:44:56 +1030 |
commit | 6a0a0dd0cc43765d8e5e277aeaaf169a863f2315 (patch) | |
tree | 776cc1a93737ca13d34c6f6c0c906134c7ddd46f /include | |
parent | ee0688c2339deba4bca7d57a96001183aa06a765 (diff) | |
download | gdb-6a0a0dd0cc43765d8e5e277aeaaf169a863f2315.zip gdb-6a0a0dd0cc43765d8e5e277aeaaf169a863f2315.tar.gz gdb-6a0a0dd0cc43765d8e5e277aeaaf169a863f2315.tar.bz2 |
Handle -z unique/-z nounique in ld
Add (or suppress) a DT_GNU_FLAGS_1 dynamic section
with a bit flag value of DF_GNU_1_UNIQUE.
bfd/
* elflink.c (bfd_elf_size_dynamic_sections): Call
_bfd_elf_add_dynamic_entry to add a DT_GNU_FLAGS_1 section.
include/
* bfdlink.h (struct bfd_link_info): New field gnu_flags_1.
ld/
* emultempl/elf.em (gld${EMULATION_NAME}_handle_option):
Parse -z unique / -z nounique options.
Diffstat (limited to 'include')
-rw-r--r-- | include/ChangeLog | 1 | ||||
-rw-r--r-- | include/bfdlink.h | 3 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/ChangeLog b/include/ChangeLog index f19742e..a8316ee 100644 --- a/include/ChangeLog +++ b/include/ChangeLog @@ -1,6 +1,7 @@ 2020-12-15 Vivek Das Mohapatra <vivek@collabora.com> * elf/common.h (DT_GNU_FLAGS_1, DF_GNU_1_UNIQUE): Define. + * bfdlink.h (struct bfd_link_info): New field gnu_flags_1. 2020-12-11 Cary Coutant <ccoutant@gmail.com> diff --git a/include/bfdlink.h b/include/bfdlink.h index b92ef54..3019033 100644 --- a/include/bfdlink.h +++ b/include/bfdlink.h @@ -655,6 +655,9 @@ struct bfd_link_info /* May be used to set DT_FLAGS_1 for ELF. */ bfd_vma flags_1; + /* May be used to set DT_GNU_FLAGS_1 for ELF. */ + bfd_vma gnu_flags_1; + /* May be used to set ELF visibility for __start_* / __stop_. */ unsigned int start_stop_visibility; |