diff options
author | emaste <emaste@FreeBSD.org> | 2017-04-19 15:33:24 +0000 |
---|---|---|
committer | emaste <emaste@FreeBSD.org> | 2017-04-19 15:33:24 +0000 |
commit | d92e530cc14bfa774f9e963b633e435b86169659 (patch) | |
tree | d47445fadd4848372cba67f3ae8a7baf561bc7d5 | |
parent | 2951ce770cf93dbe1f855263b8dfa042cad88a97 (diff) | |
download | FreeBSD-src-d92e530cc14bfa774f9e963b633e435b86169659.zip FreeBSD-src-d92e530cc14bfa774f9e963b633e435b86169659.tar.gz |
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
-rw-r--r-- | sys/boot/mips/uboot/ldscript.mips | 1 | ||||
-rw-r--r-- | sys/conf/ldscript.amd64 | 1 | ||||
-rw-r--r-- | sys/conf/ldscript.arm | 1 | ||||
-rw-r--r-- | sys/conf/ldscript.arm64 | 1 | ||||
-rw-r--r-- | sys/conf/ldscript.i386 | 1 | ||||
-rw-r--r-- | sys/conf/ldscript.mips | 1 | ||||
-rw-r--r-- | sys/conf/ldscript.mips.cfe | 1 | ||||
-rw-r--r-- | sys/conf/ldscript.mips.mips64 | 1 | ||||
-rw-r--r-- | sys/conf/ldscript.mips.octeon1 | 1 | ||||
-rw-r--r-- | sys/conf/ldscript.powerpc | 1 | ||||
-rw-r--r-- | sys/conf/ldscript.powerpc64 | 1 | ||||
-rw-r--r-- | sys/conf/ldscript.riscv | 1 | ||||
-rw-r--r-- | sys/conf/ldscript.sparc64 | 1 |
13 files changed, 0 insertions, 13 deletions
diff --git a/sys/boot/mips/uboot/ldscript.mips b/sys/boot/mips/uboot/ldscript.mips index 5ead260..815dabc 100644 --- a/sys/boot/mips/uboot/ldscript.mips +++ b/sys/boot/mips/uboot/ldscript.mips @@ -55,7 +55,6 @@ SECTIONS { *(.data) *(.gnu.linkonce.d*) - CONSTRUCTORS } .data1 : { *(.data1) } .got1 : { *(.got1) } diff --git a/sys/conf/ldscript.amd64 b/sys/conf/ldscript.amd64 index 80ddba9..73ccc59 100644 --- a/sys/conf/ldscript.amd64 +++ b/sys/conf/ldscript.amd64 @@ -160,7 +160,6 @@ SECTIONS { *(.data .data.* .gnu.linkonce.d.*) KEEP (*(.gnu.linkonce.d.*personality*)) - SORT(CONSTRUCTORS) } .data1 : { *(.data1) } _edata = .; PROVIDE (edata = .); diff --git a/sys/conf/ldscript.arm b/sys/conf/ldscript.arm index 353e365..47535cc 100644 --- a/sys/conf/ldscript.arm +++ b/sys/conf/ldscript.arm @@ -76,7 +76,6 @@ SECTIONS { *(.data) *(.gnu.linkonce.d*) - CONSTRUCTORS } .data1 : { *(.data1) } . = ALIGN(32 / 8); diff --git a/sys/conf/ldscript.arm64 b/sys/conf/ldscript.arm64 index 4b38654..86f6677 100644 --- a/sys/conf/ldscript.arm64 +++ b/sys/conf/ldscript.arm64 @@ -76,7 +76,6 @@ SECTIONS { *(.data) *(.gnu.linkonce.d*) - CONSTRUCTORS } .data1 : { *(.data1) } . = ALIGN(32 / 8); diff --git a/sys/conf/ldscript.i386 b/sys/conf/ldscript.i386 index 8617821..01b056c 100644 --- a/sys/conf/ldscript.i386 +++ b/sys/conf/ldscript.i386 @@ -137,7 +137,6 @@ SECTIONS { *(.data .data.* .gnu.linkonce.d.*) KEEP (*(.gnu.linkonce.d.*personality*)) - SORT(CONSTRUCTORS) } .data1 : { *(.data1) } _edata = .; PROVIDE (edata = .); diff --git a/sys/conf/ldscript.mips b/sys/conf/ldscript.mips index 232b79f..be50c3c 100644 --- a/sys/conf/ldscript.mips +++ b/sys/conf/ldscript.mips @@ -184,7 +184,6 @@ SECTIONS *(.data) *(.data.*) *(.gnu.linkonce.d.*) - SORT(CONSTRUCTORS) } .data1 : { *(.data1) } .eh_frame : { KEEP (*(.eh_frame)) } diff --git a/sys/conf/ldscript.mips.cfe b/sys/conf/ldscript.mips.cfe index db8a2b5..34de41c 100644 --- a/sys/conf/ldscript.mips.cfe +++ b/sys/conf/ldscript.mips.cfe @@ -201,7 +201,6 @@ SECTIONS *(.data) *(.data.*) *(.gnu.linkonce.d.*) - SORT(CONSTRUCTORS) } :data .data1 : { *(.data1) } .eh_frame : { KEEP (*(.eh_frame)) } diff --git a/sys/conf/ldscript.mips.mips64 b/sys/conf/ldscript.mips.mips64 index 5032566..7caffb6 100644 --- a/sys/conf/ldscript.mips.mips64 +++ b/sys/conf/ldscript.mips.mips64 @@ -185,7 +185,6 @@ SECTIONS *(.data) *(.data.*) *(.gnu.linkonce.d.*) - SORT(CONSTRUCTORS) } .data1 : { *(.data1) } .eh_frame : { KEEP (*(.eh_frame)) } diff --git a/sys/conf/ldscript.mips.octeon1 b/sys/conf/ldscript.mips.octeon1 index 617e836..e8f23b0 100644 --- a/sys/conf/ldscript.mips.octeon1 +++ b/sys/conf/ldscript.mips.octeon1 @@ -28,7 +28,6 @@ SECTIONS { _rwdata = .; *(.data) . = ALIGN(32); - CONSTRUCTORS; } _gp = (. + 0x8000); diff --git a/sys/conf/ldscript.powerpc b/sys/conf/ldscript.powerpc index b190dc1..5e981fd 100644 --- a/sys/conf/ldscript.powerpc +++ b/sys/conf/ldscript.powerpc @@ -63,7 +63,6 @@ SECTIONS { *(.data) *(.gnu.linkonce.d*) - CONSTRUCTORS } .data1 : { *(.data1) } .got1 : { *(.got1) } diff --git a/sys/conf/ldscript.powerpc64 b/sys/conf/ldscript.powerpc64 index 18349a5..23c93fd 100644 --- a/sys/conf/ldscript.powerpc64 +++ b/sys/conf/ldscript.powerpc64 @@ -63,7 +63,6 @@ SECTIONS { *(.data) *(.gnu.linkonce.d*) - CONSTRUCTORS } .data1 : { *(.data1) } .toc1 : ALIGN(8) { *(.toc1) } diff --git a/sys/conf/ldscript.riscv b/sys/conf/ldscript.riscv index 31fd5df..6c7d2d8 100644 --- a/sys/conf/ldscript.riscv +++ b/sys/conf/ldscript.riscv @@ -63,7 +63,6 @@ SECTIONS { *(.data) *(.gnu.linkonce.d*) - CONSTRUCTORS } .data1 : { *(.data1) } . = ALIGN(32 / 8); diff --git a/sys/conf/ldscript.sparc64 b/sys/conf/ldscript.sparc64 index 84871c2..2c4f4be 100644 --- a/sys/conf/ldscript.sparc64 +++ b/sys/conf/ldscript.sparc64 @@ -154,7 +154,6 @@ SECTIONS *(.data) *(.data.*) *(.gnu.linkonce.d.*) - SORT(CONSTRUCTORS) } .data1 : { *(.data1) } .eh_frame : { KEEP (*(.eh_frame)) } |