summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2009-09-04 06:35:29 +0000
committerAlan Modra <amodra@bigpond.net.au>2009-09-04 06:35:29 +0000
commitaed699318852a2c8d2fe676ee1216644e7513404 (patch)
tree11c004300ede32560edcc1e2adabe20d16da7947
parente98fa0203f8878a7f8200afa477a03d0ee896cb4 (diff)
downloadbinutils-redhat-aed699318852a2c8d2fe676ee1216644e7513404.tar.gz
* scripttempl/elf.sc (.text): Add cold text sections.
-rw-r--r--ld/ChangeLog4
-rw-r--r--ld/scripttempl/elf.sc1
2 files changed, 5 insertions, 0 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 56e69c38e2..62af1e15b6 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,7 @@
+2009-09-04 Alan Modra <amodra@bigpond.net.au>
+
+ * scripttempl/elf.sc (.text): Add cold text sections.
+
2009-09-04 Jie Zhang <jie.zhang@analog.com>
* emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Add .l2.text
diff --git a/ld/scripttempl/elf.sc b/ld/scripttempl/elf.sc
index d5cc3e65c1..886f57865f 100644
--- a/ld/scripttempl/elf.sc
+++ b/ld/scripttempl/elf.sc
@@ -410,6 +410,7 @@ cat <<EOF
.text ${RELOCATING-0} :
{
${RELOCATING+${TEXT_START_SYMBOLS}}
+ ${RELOCATING+*(.text.unlikely .text.*_unlikely)}
*(.text .stub${RELOCATING+ .text.* .gnu.linkonce.t.*})
/* .gnu.warning sections are handled specially by elf32.em. */
*(.gnu.warning)