[RFC][PATCH 2/6] Handle DF_1_UNIQUE in ld

Vivek Das Mohapatra vivek@collabora.com
Mon Mar 30 17:42:03 GMT 2020


---
 ld/emultempl/elf.em | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/ld/emultempl/elf.em b/ld/emultempl/elf.em
index bb7e537530..3d63917313 100644
--- a/ld/emultempl/elf.em
+++ b/ld/emultempl/elf.em
@@ -787,6 +787,8 @@ fragment <<EOF
 	  link_info.flags |= (bfd_vma) DF_ORIGIN;
 	  link_info.flags_1 |= (bfd_vma) DF_1_ORIGIN;
 	}
+      else if (strcmp (optarg, "unique") == 0)
+        link_info.flags_1 |= (bfd_vma) DF_1_UNIQUE;
       else if (strcmp (optarg, "combreloc") == 0)
 	link_info.combreloc = TRUE;
       else if (strcmp (optarg, "nocombreloc") == 0)
-- 
2.11.0



More information about the Libc-alpha mailing list