aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl/pe.sc
diff options
context:
space:
mode:
authorAwson <kyrab@mail.ru>2016-03-18 11:45:43 +0000
committerNick Clifton <nickc@redhat.com>2016-03-18 11:45:43 +0000
commit45821bef0977a7436aa5cd5f37f5a178d446d675 (patch)
treea60d7b25d7b5ffcefd2f72822f51000cf61545d3 /ld/scripttempl/pe.sc
parent41f46ed9fea1a066de95b6a85c56393beef0b8b8 (diff)
downloadfsf-binutils-gdb-45821bef0977a7436aa5cd5f37f5a178d446d675.zip
fsf-binutils-gdb-45821bef0977a7436aa5cd5f37f5a178d446d675.tar.gz
fsf-binutils-gdb-45821bef0977a7436aa5cd5f37f5a178d446d675.tar.bz2
Ensure that the .rdata_pseudo_runtime_reloc sections are not discarded by gabage collection.
PR 19531 * scripttempl/pe.sc (.rdata_runtime_pseudo_reloc): Always KEEP this section. * scripttempl/pep.sc (.rdata_runtime_pseudo_reloc): Likewise.
Diffstat (limited to 'ld/scripttempl/pe.sc')
-rw-r--r--ld/scripttempl/pe.sc2
1 files changed, 1 insertions, 1 deletions
diff --git a/ld/scripttempl/pe.sc b/ld/scripttempl/pe.sc
index f227cb6..59e4e89 100644
--- a/ld/scripttempl/pe.sc
+++ b/ld/scripttempl/pe.sc
@@ -125,7 +125,7 @@ SECTIONS
{
${R_RDATA}
${RELOCATING+__rt_psrelocs_start = .;}
- *(.rdata_runtime_pseudo_reloc)
+ KEEP(*(.rdata_runtime_pseudo_reloc))
${RELOCATING+__rt_psrelocs_end = .;}
}
${RELOCATING+__rt_psrelocs_size = __rt_psrelocs_end - __rt_psrelocs_start;}