Source-Changes-HG archive

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

[src/trunk]: src/sys/arch/i386/conf Do AT () relocation once.



details:   https://anonhg.NetBSD.org/src/rev/2df8322a0731
branches:  trunk
changeset: 810166:2df8322a0731
user:      uebayasi <uebayasi%NetBSD.org@localhost>
date:      Thu Aug 20 11:42:56 2015 +0000

description:
Do AT () relocation once.

diffstat:

 sys/arch/i386/conf/stand.ldscript |  18 ++++++++++--------
 1 files changed, 10 insertions(+), 8 deletions(-)

diffs (66 lines):

diff -r fdce739ed33e -r 2df8322a0731 sys/arch/i386/conf/stand.ldscript
--- a/sys/arch/i386/conf/stand.ldscript Thu Aug 20 11:38:27 2015 +0000
+++ b/sys/arch/i386/conf/stand.ldscript Thu Aug 20 11:42:56 2015 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stand.ldscript,v 1.2 2015/08/20 07:00:48 uebayasi Exp $        */
+/*     $NetBSD: stand.ldscript,v 1.3 2015/08/20 11:42:56 uebayasi Exp $        */
 
 OUTPUT_FORMAT("elf32-i386", "elf32-i386",
              "elf32-i386")
@@ -8,17 +8,15 @@
 {
   /* Read-only sections, merged into text segment: */
   .text :
-  AT (ADDR(.text) & 0x0fffffff)
   {
     *(.text)
     *(.text.*)
     *(.stub)
-  } =0
+  }
   _etext = . ;
   PROVIDE (etext = .) ;
 
   .rodata :
-  AT (LOADADDR(.text) + (ADDR(.rodata) - ADDR(.text)))
   {
     *(.rodata)
     *(.rodata.*)
@@ -26,17 +24,14 @@
 
   __data_start = . ;
   .data :
-  AT (LOADADDR(.text) + (ADDR(.data) - ADDR(.text)))
   {
     *(.data)
   }
   .data.cacheline_aligned :
-  AT (LOADADDR(.text) + (ADDR(.data.cacheline_aligned) - ADDR(.text)))
   {
     *(.data.cacheline_aligned)
   }
   .data.read_mostly :
-  AT (LOADADDR(.text) + (ADDR(.data.read_mostly) - ADDR(.text)))
   {
     *(.data.read_mostly)
   }
@@ -44,7 +39,6 @@
   PROVIDE (edata = .) ;
   __bss_start = . ;
   .bss :
-  AT (LOADADDR(.text) + (ADDR(.bss) - ADDR(.text)))
   {
     *(.bss)
     *(.bss.*)
@@ -62,3 +56,11 @@
     *(.note.netbsd.ident)
   }
 }
+SECTIONS
+{
+  .text :
+  AT (ADDR(.text) & 0x0fffffff)
+  {
+    *(.text)
+  } =0
+}



Home | Main Index | Thread Index | Old Index