[RFC,2/6] Handle DF_1_UNIQUE in ld

Message ID 01252aa43e79fd6ef92fc8dafe19193b334fae8b.1585587351.git.vivek@collabora.com
State Not applicable
Headers
Series binutils patches to add DT_FLAGS_1 / DF_1_UNIQUE |

Commit Message

Vivek Dasmohapatra March 30, 2020, 5:42 p.m. UTC
  ---
 ld/emultempl/elf.em | 2 ++
 1 file changed, 2 insertions(+)
  

Patch

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)