aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl/pep.sc
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/pep.sc
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/pep.sc')
-rw-r--r--ld/scripttempl/pep.sc2
1 files changed, 1 insertions, 1 deletions
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_*)}
}