Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/external/gpl3/binutils/dist/ld/scripttempl gcc-4.8 has begun...



details:   https://anonhg.NetBSD.org/src/rev/4a9a00d5c6ab
branches:  trunk
changeset: 325739:4a9a00d5c6ab
user:      christos <christos%NetBSD.org@localhost>
date:      Sat Jan 04 20:17:42 2014 +0000

description:
gcc-4.8 has begun putting code in .text.unlikely etc. This breaks our
assumption that .text code comes first in kernels about bootblock so
that the first symbol defined becomes the start address. This change
puts .text before other .text like sections.

diffstat:

 external/gpl3/binutils/dist/ld/scripttempl/elf.sc |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r 6aafd7912529 -r 4a9a00d5c6ab external/gpl3/binutils/dist/ld/scripttempl/elf.sc
--- a/external/gpl3/binutils/dist/ld/scripttempl/elf.sc Sat Jan 04 19:08:43 2014 +0000
+++ b/external/gpl3/binutils/dist/ld/scripttempl/elf.sc Sat Jan 04 20:17:42 2014 +0000
@@ -473,11 +473,12 @@
   .text         ${RELOCATING-0} :
   {
     ${RELOCATING+${TEXT_START_SYMBOLS}}
+    *(.text)
     ${RELOCATING+*(.text.unlikely .text.*_unlikely)}
     ${RELOCATING+*(.text.exit .text.exit.*)}
     ${RELOCATING+*(.text.startup .text.startup.*)}
     ${RELOCATING+*(.text.hot .text.hot.*)}
-    *(.text .stub${RELOCATING+ .text.* .gnu.linkonce.t.*})
+    *(.stub${RELOCATING+ .text.* .gnu.linkonce.t.*})
     /* .gnu.warning sections are handled specially by elf32.em.  */
     *(.gnu.warning)
     ${RELOCATING+${OTHER_TEXT_SECTIONS}}



Home | Main Index | Thread Index | Old Index