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.
This commit is contained in:
Awson
2016-03-18 11:45:43 +00:00
committed by Nick Clifton
parent 41f46ed9fe
commit 45821bef09
3 changed files with 9 additions and 2 deletions

View File

@@ -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;}

View File

@@ -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;}