diff --git a/ld/ChangeLog b/ld/ChangeLog index 401226bc54b..0137ab30885 100644 --- a/ld/ChangeLog +++ b/ld/ChangeLog @@ -1,3 +1,10 @@ +2016-03-18 Awson + + PR 19531 + * scripttempl/pe.sc (.rdata_runtime_pseudo_reloc): Always KEEP + this section. + * scripttempl/pep.sc (.rdata_runtime_pseudo_reloc): Likewise. + 2016-03-18 Senthil Kumar Selvaraj * ld-avr/gc-section-debugline.d: Relax regex check for CU. diff --git a/ld/scripttempl/pe.sc b/ld/scripttempl/pe.sc index f227cb64ba6..59e4e89eb84 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 b664163e14d..c682fe70069 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;}