From 032f3e01ca57897834b9d08a7715f6a358e7debb Mon Sep 17 00:00:00 2001 From: Dave Korn Date: Thu, 3 Sep 2009 18:04:35 +0000 Subject: ld/ChangeLog: * scripttempl/pe.sc (.text): Add "*(.text.*)" in order to catch new GCC hot/cold/unlikely partitions. * scripttempl/pep.sc: Likewise. * scripttempl/epocpe.sc: Likewise. * scripttempl/mcorepe.sc: Likewise. * scripttempl/ppcpe.sc: Likewise. ld/testsuite/ChangeLog: * ld-pe/longsecn.d: Adjusted to match new .text section merging in default PE linker scripts. * ld-pe/longsecn-1.d: Likewise. * ld-pe/longsecn-2.d: Likewise. --- ld/scripttempl/epocpe.sc | 1 + ld/scripttempl/mcorepe.sc | 1 + ld/scripttempl/pe.sc | 1 + ld/scripttempl/pep.sc | 1 + ld/scripttempl/ppcpe.sc | 1 + 5 files changed, 5 insertions(+) (limited to 'ld/scripttempl') diff --git a/ld/scripttempl/epocpe.sc b/ld/scripttempl/epocpe.sc index eda6696..34aebf6 100644 --- a/ld/scripttempl/epocpe.sc +++ b/ld/scripttempl/epocpe.sc @@ -52,6 +52,7 @@ SECTIONS ${R_TEXT} *(.glue_7t) *(.glue_7) + ${RELOCATING+ *(.text.*)} ${CONSTRUCTING+ ___CTOR_LIST__ = .; __CTOR_LIST__ = . ; LONG (-1); *(.ctors); *(.ctor); LONG (0); } ${CONSTRUCTING+ ___DTOR_LIST__ = .; __DTOR_LIST__ = . ; diff --git a/ld/scripttempl/mcorepe.sc b/ld/scripttempl/mcorepe.sc index 6f928aa..5b10881 100644 --- a/ld/scripttempl/mcorepe.sc +++ b/ld/scripttempl/mcorepe.sc @@ -56,6 +56,7 @@ SECTIONS ${RELOCATING+ *(.init)} *(.text) ${R_TEXT} + ${RELOCATING+ *(.text.*)} *(.glue_7t) *(.glue_7) ${CONSTRUCTING+ ___CTOR_LIST__ = .; __CTOR_LIST__ = . ; diff --git a/ld/scripttempl/pe.sc b/ld/scripttempl/pe.sc index 687efb0..0d59aa0 100644 --- a/ld/scripttempl/pe.sc +++ b/ld/scripttempl/pe.sc @@ -69,6 +69,7 @@ SECTIONS ${RELOCATING+ *(.init)} *(.text) ${R_TEXT} + ${RELOCATING+ *(.text.*)} *(.glue_7t) *(.glue_7) ${CONSTRUCTING+ ___CTOR_LIST__ = .; __CTOR_LIST__ = . ; diff --git a/ld/scripttempl/pep.sc b/ld/scripttempl/pep.sc index b39469d..c6eb06c 100644 --- a/ld/scripttempl/pep.sc +++ b/ld/scripttempl/pep.sc @@ -69,6 +69,7 @@ SECTIONS ${RELOCATING+ *(.init)} *(.text) ${R_TEXT} + ${RELOCATING+ *(.text.*)} *(.glue_7t) *(.glue_7) ${CONSTRUCTING+. = ALIGN(8);} diff --git a/ld/scripttempl/ppcpe.sc b/ld/scripttempl/ppcpe.sc index 40fbe33..83e2609 100644 --- a/ld/scripttempl/ppcpe.sc +++ b/ld/scripttempl/ppcpe.sc @@ -32,6 +32,7 @@ SECTIONS { ${RELOCATING+ *(.init);} *(.text) + ${RELOCATING+ *(.text.*)} *(.gcc_except_table) ${CONSTRUCTING+ ___CTOR_LIST__ = .; __CTOR_LIST__ = . ; LONG (-1); *(.ctors); *(.ctor); LONG (0); } -- cgit v1.1