]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFC r303442, r305343: remove CONSTRUCTORS from linker scripts
authoremaste <emaste@FreeBSD.org>
Wed, 19 Apr 2017 15:33:24 +0000 (15:33 +0000)
committeremaste <emaste@FreeBSD.org>
Wed, 19 Apr 2017 15:33:24 +0000 (15:33 +0000)
commitd92e530cc14bfa774f9e963b633e435b86169659
treed47445fadd4848372cba67f3ae8a7baf561bc7d5
parent2951ce770cf93dbe1f855263b8dfa042cad88a97
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
13 files changed:
sys/boot/mips/uboot/ldscript.mips
sys/conf/ldscript.amd64
sys/conf/ldscript.arm
sys/conf/ldscript.arm64
sys/conf/ldscript.i386
sys/conf/ldscript.mips
sys/conf/ldscript.mips.cfe
sys/conf/ldscript.mips.mips64
sys/conf/ldscript.mips.octeon1
sys/conf/ldscript.powerpc
sys/conf/ldscript.powerpc64
sys/conf/ldscript.riscv
sys/conf/ldscript.sparc64