From 6a0a0dd0cc43765d8e5e277aeaaf169a863f2315 Mon Sep 17 00:00:00 2001 From: Vivek Das Mohapatra Date: Mon, 14 Dec 2020 17:25:51 +0000 Subject: 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. --- include/ChangeLog | 1 + 1 file changed, 1 insertion(+) (limited to 'include/ChangeLog') 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 * 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 -- cgit v1.1