aboutsummaryrefslogtreecommitdiff
path: root/ld/scripttempl
diff options
context:
space:
mode:
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 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;}
diff --git a/ld/scripttempl/pep.sc b/ld/scripttempl/pep.sc
index b664163..c682fe7 100644
--- a/ld/scripttempl/pep.sc
+++ b/ld/scripttempl/pep.sc
@@ -133,7 +133,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;}