aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2022-12-21 10:23:08 +0000
committerNick Clifton <nickc@redhat.com>2022-12-21 10:23:08 +0000
commita7a32d588f29466221f5b4d421d0fc0a652dae48 (patch)
tree9ec43fec3beb0ba6282e5e31965347ca171705e1 /ld/scripttempl
parent9c19e9ec4df225ed9e75ba4c839d6da08e23dd4a (diff)
downloadgdb-a7a32d588f29466221f5b4d421d0fc0a652dae48.zip
gdb-a7a32d588f29466221f5b4d421d0fc0a652dae48.tar.gz
gdb-a7a32d588f29466221f5b4d421d0fc0a652dae48.tar.bz2
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.
Diffstat (limited to 'ld/scripttempl')
-rw-r--r--ld/scripttempl/pe.sc2
-rw-r--r--ld/scripttempl/pep.sc2
2 files changed, 2 insertions, 2 deletions
diff --git a/ld/scripttempl/pe.sc b/ld/scripttempl/pe.sc
index d56309e..6f559cf 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 f8fa743..cb404eb 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_*)}
}