svn commit: r317145 - in stable/11/sys: boot/mips/uboot conf

Ed Maste emaste at FreeBSD.org
Wed Apr 19 15:33:26 UTC 2017


Author: emaste
Date: Wed Apr 19 15:33:24 2017
New Revision: 317145
URL: https://svnweb.freebsd.org/changeset/base/317145

Log:
  MFC r303442, r305343: remove CONSTRUCTORS from linker scripts
  
  r303442: remove CONSTRUCTORS from kernel linker scripts
  
  r305343: remove CONSTRUCTORS from MIPS uboot linker script
  
  The linker script CONSTRUCTORS keyword is only meaningful "when linking
  object file formats which do not support arbitrary sections, such as
  ECOFF and XCOFF"[1] and is ignored for other object file formats.
  
  LLVM's lld does not yet accept (and ignore) CONSTRUCTORS, so just remove
  CONSTRUCTORS from the linker script as it has no effect.
  
  [1] https://sourceware.org/binutils/docs/ld/Output-Section-Keywords.html
  
  Reported by:	andrew
  Sponsored by:	The FreeBSD Foundation

Modified:
  stable/11/sys/boot/mips/uboot/ldscript.mips
  stable/11/sys/conf/ldscript.amd64
  stable/11/sys/conf/ldscript.arm
  stable/11/sys/conf/ldscript.arm64
  stable/11/sys/conf/ldscript.i386
  stable/11/sys/conf/ldscript.mips
  stable/11/sys/conf/ldscript.mips.cfe
  stable/11/sys/conf/ldscript.mips.mips64
  stable/11/sys/conf/ldscript.mips.octeon1
  stable/11/sys/conf/ldscript.powerpc
  stable/11/sys/conf/ldscript.powerpc64
  stable/11/sys/conf/ldscript.riscv
  stable/11/sys/conf/ldscript.sparc64
Directory Properties:
  stable/11/   (props changed)

Modified: stable/11/sys/boot/mips/uboot/ldscript.mips
==============================================================================
--- stable/11/sys/boot/mips/uboot/ldscript.mips	Wed Apr 19 15:24:33 2017	(r317144)
+++ stable/11/sys/boot/mips/uboot/ldscript.mips	Wed Apr 19 15:33:24 2017	(r317145)
@@ -55,7 +55,6 @@ SECTIONS
   {
     *(.data)
     *(.gnu.linkonce.d*)
-    CONSTRUCTORS
   }
   .data1   : { *(.data1) }
   .got1           : { *(.got1) }

Modified: stable/11/sys/conf/ldscript.amd64
==============================================================================
--- stable/11/sys/conf/ldscript.amd64	Wed Apr 19 15:24:33 2017	(r317144)
+++ stable/11/sys/conf/ldscript.amd64	Wed Apr 19 15:33:24 2017	(r317145)
@@ -160,7 +160,6 @@ SECTIONS
   {
     *(.data .data.* .gnu.linkonce.d.*)
     KEEP (*(.gnu.linkonce.d.*personality*))
-    SORT(CONSTRUCTORS)
   }
   .data1          : { *(.data1) }
   _edata = .; PROVIDE (edata = .);

Modified: stable/11/sys/conf/ldscript.arm
==============================================================================
--- stable/11/sys/conf/ldscript.arm	Wed Apr 19 15:24:33 2017	(r317144)
+++ stable/11/sys/conf/ldscript.arm	Wed Apr 19 15:33:24 2017	(r317145)
@@ -76,7 +76,6 @@ SECTIONS
   {
     *(.data)
     *(.gnu.linkonce.d*)
-    CONSTRUCTORS
   }
   .data1   : { *(.data1) }
   . = ALIGN(32 / 8);

Modified: stable/11/sys/conf/ldscript.arm64
==============================================================================
--- stable/11/sys/conf/ldscript.arm64	Wed Apr 19 15:24:33 2017	(r317144)
+++ stable/11/sys/conf/ldscript.arm64	Wed Apr 19 15:33:24 2017	(r317145)
@@ -76,7 +76,6 @@ SECTIONS
   {
     *(.data)
     *(.gnu.linkonce.d*)
-    CONSTRUCTORS
   }
   .data1   : { *(.data1) }
   . = ALIGN(32 / 8);

Modified: stable/11/sys/conf/ldscript.i386
==============================================================================
--- stable/11/sys/conf/ldscript.i386	Wed Apr 19 15:24:33 2017	(r317144)
+++ stable/11/sys/conf/ldscript.i386	Wed Apr 19 15:33:24 2017	(r317145)
@@ -137,7 +137,6 @@ SECTIONS
   {
     *(.data .data.* .gnu.linkonce.d.*)
     KEEP (*(.gnu.linkonce.d.*personality*))
-    SORT(CONSTRUCTORS)
   }
   .data1          : { *(.data1) }
   _edata = .; PROVIDE (edata = .);

Modified: stable/11/sys/conf/ldscript.mips
==============================================================================
--- stable/11/sys/conf/ldscript.mips	Wed Apr 19 15:24:33 2017	(r317144)
+++ stable/11/sys/conf/ldscript.mips	Wed Apr 19 15:33:24 2017	(r317145)
@@ -184,7 +184,6 @@ SECTIONS
     *(.data)
     *(.data.*)
     *(.gnu.linkonce.d.*)
-    SORT(CONSTRUCTORS)
   }
   .data1   : { *(.data1) }
   .eh_frame : { KEEP (*(.eh_frame)) }

Modified: stable/11/sys/conf/ldscript.mips.cfe
==============================================================================
--- stable/11/sys/conf/ldscript.mips.cfe	Wed Apr 19 15:24:33 2017	(r317144)
+++ stable/11/sys/conf/ldscript.mips.cfe	Wed Apr 19 15:33:24 2017	(r317145)
@@ -201,7 +201,6 @@ SECTIONS
     *(.data)
     *(.data.*)
     *(.gnu.linkonce.d.*)
-    SORT(CONSTRUCTORS)
   } :data
   .data1   : { *(.data1) }
   .eh_frame : { KEEP (*(.eh_frame)) }

Modified: stable/11/sys/conf/ldscript.mips.mips64
==============================================================================
--- stable/11/sys/conf/ldscript.mips.mips64	Wed Apr 19 15:24:33 2017	(r317144)
+++ stable/11/sys/conf/ldscript.mips.mips64	Wed Apr 19 15:33:24 2017	(r317145)
@@ -185,7 +185,6 @@ SECTIONS
     *(.data)
     *(.data.*)
     *(.gnu.linkonce.d.*)
-    SORT(CONSTRUCTORS)
   }
   .data1   : { *(.data1) }
   .eh_frame : { KEEP (*(.eh_frame)) }

Modified: stable/11/sys/conf/ldscript.mips.octeon1
==============================================================================
--- stable/11/sys/conf/ldscript.mips.octeon1	Wed Apr 19 15:24:33 2017	(r317144)
+++ stable/11/sys/conf/ldscript.mips.octeon1	Wed Apr 19 15:33:24 2017	(r317145)
@@ -28,7 +28,6 @@ SECTIONS {
                 _rwdata = .;
 	    	*(.data)
 		. = ALIGN(32);
-		CONSTRUCTORS;
 	}
 
 	_gp = (. + 0x8000);

Modified: stable/11/sys/conf/ldscript.powerpc
==============================================================================
--- stable/11/sys/conf/ldscript.powerpc	Wed Apr 19 15:24:33 2017	(r317144)
+++ stable/11/sys/conf/ldscript.powerpc	Wed Apr 19 15:33:24 2017	(r317145)
@@ -63,7 +63,6 @@ SECTIONS
   {
     *(.data)
     *(.gnu.linkonce.d*)
-    CONSTRUCTORS
   }
   .data1   : { *(.data1) }
   .got1           : { *(.got1) }

Modified: stable/11/sys/conf/ldscript.powerpc64
==============================================================================
--- stable/11/sys/conf/ldscript.powerpc64	Wed Apr 19 15:24:33 2017	(r317144)
+++ stable/11/sys/conf/ldscript.powerpc64	Wed Apr 19 15:33:24 2017	(r317145)
@@ -63,7 +63,6 @@ SECTIONS
   {
     *(.data)
     *(.gnu.linkonce.d*)
-    CONSTRUCTORS
   }
   .data1     : { *(.data1) }
   .toc1      : ALIGN(8) { *(.toc1) }

Modified: stable/11/sys/conf/ldscript.riscv
==============================================================================
--- stable/11/sys/conf/ldscript.riscv	Wed Apr 19 15:24:33 2017	(r317144)
+++ stable/11/sys/conf/ldscript.riscv	Wed Apr 19 15:33:24 2017	(r317145)
@@ -63,7 +63,6 @@ SECTIONS
   {
     *(.data)
     *(.gnu.linkonce.d*)
-    CONSTRUCTORS
   }
   .data1   : { *(.data1) }
   . = ALIGN(32 / 8);

Modified: stable/11/sys/conf/ldscript.sparc64
==============================================================================
--- stable/11/sys/conf/ldscript.sparc64	Wed Apr 19 15:24:33 2017	(r317144)
+++ stable/11/sys/conf/ldscript.sparc64	Wed Apr 19 15:33:24 2017	(r317145)
@@ -154,7 +154,6 @@ SECTIONS
     *(.data)
     *(.data.*)
     *(.gnu.linkonce.d.*)
-    SORT(CONSTRUCTORS)
   }
   .data1   : { *(.data1) }
   .eh_frame : { KEEP (*(.eh_frame)) }


More information about the svn-src-all mailing list