forked from Imagelibrary/binutils-gdb
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:
@@ -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;}
|
||||
|
||||
@@ -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;}
|
||||
|
||||
Reference in New Issue
Block a user