Source-Changes-HG archive

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

[src/trunk]: src/sys/arch Merge the .text.* sections into the .text section o...



details:   https://anonhg.NetBSD.org/src/rev/a031de6a1b74
branches:  trunk
changeset: 982686:a031de6a1b74
user:      simonb <simonb%NetBSD.org@localhost>
date:      Fri Apr 23 08:42:25 2021 +0000

description:
Merge the .text.* sections into the .text section on MIPS, SPARC and
SPARC64 as is done on all other ports.  Mostly costmetic, but does mean
that main() now appears before the _etext symbol instead of after it.

diffstat:

 sys/arch/mips/conf/kern.ldscript      |  3 ++-
 sys/arch/mips/conf/stand.ldscript     |  3 ++-
 sys/arch/mipsco/conf/stand.ldscript   |  3 ++-
 sys/arch/sparc/conf/kern.ldscript     |  3 ++-
 sys/arch/sparc64/conf/kern.ldscript   |  3 ++-
 sys/arch/sparc64/conf/kern32.ldscript |  3 +--
 6 files changed, 11 insertions(+), 7 deletions(-)

diffs (102 lines):

diff -r ccef027ff8ca -r a031de6a1b74 sys/arch/mips/conf/kern.ldscript
--- a/sys/arch/mips/conf/kern.ldscript  Fri Apr 23 06:13:05 2021 +0000
+++ b/sys/arch/mips/conf/kern.ldscript  Fri Apr 23 08:42:25 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: kern.ldscript,v 1.11 2015/08/25 08:08:12 uebayasi Exp $ */
+/* $NetBSD: kern.ldscript,v 1.12 2021/04/23 08:42:25 simonb Exp $ */
 
 #include "assym.h"
 
@@ -16,6 +16,7 @@
   {
     _ftext = . ;
     *(.text)
+    *(.text.*)
     __stub_start = . ;
     *(.stub*)
     __stub_end = . ;
diff -r ccef027ff8ca -r a031de6a1b74 sys/arch/mips/conf/stand.ldscript
--- a/sys/arch/mips/conf/stand.ldscript Fri Apr 23 06:13:05 2021 +0000
+++ b/sys/arch/mips/conf/stand.ldscript Fri Apr 23 08:42:25 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: stand.ldscript,v 1.7 2015/08/22 23:49:54 uebayasi Exp $ */
+/* $NetBSD: stand.ldscript,v 1.8 2021/04/23 08:42:25 simonb Exp $ */
 
 /*  ldscript for NetBSD/mips stand-alone programs */
 OUTPUT_ARCH(mips)
@@ -11,6 +11,7 @@
   {
     _ftext = . ;
     *(.text)
+    *(.text.*)
     *(.gnu.warning)
   } =0
   _etext = .;
diff -r ccef027ff8ca -r a031de6a1b74 sys/arch/mipsco/conf/stand.ldscript
--- a/sys/arch/mipsco/conf/stand.ldscript       Fri Apr 23 06:13:05 2021 +0000
+++ b/sys/arch/mipsco/conf/stand.ldscript       Fri Apr 23 08:42:25 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: stand.ldscript,v 1.5 2015/08/20 07:00:49 uebayasi Exp $        */
+/*     $NetBSD: stand.ldscript,v 1.6 2021/04/23 08:42:26 simonb Exp $  */
 
 /*  ldscript for NetBSD/mipsco standalone bootstraps */
 OUTPUT_FORMAT("elf32-tradbigmips", "elf32-tradbigmips", "elf32-tradlittlemips")
@@ -12,6 +12,7 @@
   {
     _ftext = . ;
     *(.text)
+    *(.text.*)
     *(.gnu.warning)
   } =0
   _etext = .;
diff -r ccef027ff8ca -r a031de6a1b74 sys/arch/sparc/conf/kern.ldscript
--- a/sys/arch/sparc/conf/kern.ldscript Fri Apr 23 06:13:05 2021 +0000
+++ b/sys/arch/sparc/conf/kern.ldscript Fri Apr 23 08:42:25 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern.ldscript,v 1.12 2015/08/25 02:58:59 uebayasi Exp $        */
+/*     $NetBSD: kern.ldscript,v 1.13 2021/04/23 08:42:26 simonb Exp $  */
 
 #undef sparc
 
@@ -20,6 +20,7 @@
   .text      :
   {
     *(.text)
+    *(.text.*)
     *(.stub)
     /* .gnu.warning sections are handled specially by elf32.em.  */
     *(.gnu.warning)
diff -r ccef027ff8ca -r a031de6a1b74 sys/arch/sparc64/conf/kern.ldscript
--- a/sys/arch/sparc64/conf/kern.ldscript       Fri Apr 23 06:13:05 2021 +0000
+++ b/sys/arch/sparc64/conf/kern.ldscript       Fri Apr 23 08:42:25 2021 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: kern.ldscript,v 1.17 2015/08/25 02:59:00 uebayasi Exp $        */
+/*     $NetBSD: kern.ldscript,v 1.18 2021/04/23 08:42:26 simonb Exp $  */
 
 #undef sparc
 
@@ -19,6 +19,7 @@
   .text      :
   {
     *(.text)
+    *(.text.*)
     *(.stub)
     /* .gnu.warning sections are handled specially by elf32.em.  */
     *(.gnu.warning)
diff -r ccef027ff8ca -r a031de6a1b74 sys/arch/sparc64/conf/kern32.ldscript
--- a/sys/arch/sparc64/conf/kern32.ldscript     Fri Apr 23 06:13:05 2021 +0000
+++ b/sys/arch/sparc64/conf/kern32.ldscript     Fri Apr 23 08:42:25 2021 +0000
@@ -1,5 +1,3 @@
-/*     $NetBSD: kern32.ldscript,v 1.17 2016/03/25 14:58:53 nakayama Exp $      */
-
 #undef sparc
 
 /*
@@ -20,6 +18,7 @@
   .text      :
   {
     *(.text)
+    *(.text.*)
     *(.stub)
     /* .gnu.warning sections are handled specially by elf32.em.  */
     *(.gnu.warning)



Home | Main Index | Thread Index | Old Index