* [binutils-gdb] Keep the .drectve section when performing a relocateable link.
@ 2022-12-21 10:23 Nick Clifton
0 siblings, 0 replies; only message in thread
From: Nick Clifton @ 2022-12-21 10:23 UTC (permalink / raw)
To: bfd-cvs
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=a7a32d588f29466221f5b4d421d0fc0a652dae48
commit a7a32d588f29466221f5b4d421d0fc0a652dae48
Author: Nick Clifton <nickc@redhat.com>
Date: Wed Dec 21 10:23:08 2022 +0000
Keep the .drectve section when performing a relocateable link.
PR 29900
* scripttempl/pe.sc: Keep the .drectve section when performing a
relocateable link.
* scripttempl/pep.sc: Likewise.
Diff:
---
ld/ChangeLog | 7 +++++++
ld/scripttempl/pe.sc | 2 +-
ld/scripttempl/pep.sc | 2 +-
3 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 8cff90b559b..12076310b0d 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -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
diff --git a/ld/scripttempl/pe.sc b/ld/scripttempl/pe.sc
index d56309e84fb..6f559cf5e70 100644
--- a/ld/scripttempl/pe.sc
+++ b/ld/scripttempl/pe.sc
@@ -203,7 +203,7 @@ SECTIONS
*(.debug\$S)
*(.debug\$T)
*(.debug\$F)
- *(.drectve)
+ ${RELOCATING+ *(.drectve)}
${RELOCATING+ *(.note.GNU-stack)}
${RELOCATING+ *(.gnu.lto_*)}
}
diff --git a/ld/scripttempl/pep.sc b/ld/scripttempl/pep.sc
index f8fa74364aa..cb404eb070a 100644
--- a/ld/scripttempl/pep.sc
+++ b/ld/scripttempl/pep.sc
@@ -208,7 +208,7 @@ SECTIONS
*(.debug\$S)
*(.debug\$T)
*(.debug\$F)
- *(.drectve)
+ ${RELOCATING+ *(.drectve)}
${RELOCATING+ *(.note.GNU-stack)}
${RELOCATING+ *(.gnu.lto_*)}
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-12-21 10:23 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-12-21 10:23 [binutils-gdb] Keep the .drectve section when performing a relocateable link Nick Clifton
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).