]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Keep the .drectve section when performing a relocateable link.
authorNick Clifton <nickc@redhat.com>
Wed, 21 Dec 2022 10:23:08 +0000 (10:23 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 21 Dec 2022 10:23:08 +0000 (10:23 +0000)
PR 29900
* scripttempl/pe.sc: Keep the .drectve section when performing a
relocateable link.
* scripttempl/pep.sc: Likewise.

ld/ChangeLog
ld/scripttempl/pe.sc
ld/scripttempl/pep.sc

index 8cff90b559bca6bb7b2f9d03e21683f2a53d4218..12076310b0d1e49edcfde5b2296d9a6621f96dc2 100644 (file)
@@ -1,3 +1,10 @@
+2022-12-21  Nick Clifton  <nickc@redhat.com>
+
+       PR 29900
+       * scripttempl/pe.sc: Keep the .drectve section when performing a
+       relocateable link.
+       * scripttempl/pep.sc: Likewise.
+
 2022-12-08  Nick Clifton  <nickc@redhat.com>
 
        PR 29861
index d56309e84fb137a9e5a29ffd6839de929595e8cf..6f559cf5e70c410e4bc73e362af999d340808099 100644 (file)
@@ -203,7 +203,7 @@ SECTIONS
     *(.debug\$S)
     *(.debug\$T)
     *(.debug\$F)
-    *(.drectve)
+    ${RELOCATING+ *(.drectve)}
     ${RELOCATING+ *(.note.GNU-stack)}
     ${RELOCATING+ *(.gnu.lto_*)}
   }
index f8fa74364aa9c4ca3f5cf44cab6bcf4760b81b3a..cb404eb070a1ee417d89e6dee439d1b9ecbb4406 100644 (file)
@@ -208,7 +208,7 @@ SECTIONS
     *(.debug\$S)
     *(.debug\$T)
     *(.debug\$F)
-    *(.drectve)
+    ${RELOCATING+ *(.drectve)}
     ${RELOCATING+ *(.note.GNU-stack)}
     ${RELOCATING+ *(.gnu.lto_*)}
   }