Module Name:    src
Committed By:   christos
Date:           Sat Jan  4 20:17:42 UTC 2014

Modified Files:
        src/external/gpl3/binutils/dist/ld/scripttempl: elf.sc

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.4 -r1.5 \
    src/external/gpl3/binutils/dist/ld/scripttempl/elf.sc

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/external/gpl3/binutils/dist/ld/scripttempl/elf.sc
diff -u src/external/gpl3/binutils/dist/ld/scripttempl/elf.sc:1.4 src/external/gpl3/binutils/dist/ld/scripttempl/elf.sc:1.5
--- src/external/gpl3/binutils/dist/ld/scripttempl/elf.sc:1.4	Sun Sep 29 10:03:31 2013
+++ src/external/gpl3/binutils/dist/ld/scripttempl/elf.sc	Sat Jan  4 15:17:42 2014
@@ -473,11 +473,12 @@ cat <<EOF
   .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}}

Reply via email to