]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
stand: Move sections around to fix stand/ build with ld.lld on armv7
authorkevans <kevans@FreeBSD.org>
Thu, 18 Jan 2018 22:46:47 +0000 (22:46 +0000)
committerkevans <kevans@FreeBSD.org>
Thu, 18 Jan 2018 22:46:47 +0000 (22:46 +0000)
commit2832bf2f2ab1e6b233e9b7c99d26ca5fa5ed5e60
treee050c27823cef206adfb926b3db150dbbc1635c5
parentb3b999d2ab0e0d263e04013b73ccae1afbf8d964
stand: Move sections around to fix stand/ build with ld.lld on armv7

When building loader bits, lld fails with the following error:
"ld: error: section: .dynamic is not contiguous with other relro sections"
on both ubldr and EFI loader.

Move .dynamic up to make ld.lld happy, adjust .got as necessary for ubldr.

Tested on: OrangePi One (ld.lld, ubldr)
Tested on: Banana Pi-M3 (ld.lld, ubldr)
Tested on: qemu-armv7 (ld.lld, EFI)
Tested on: qemu-armv7 (ld.bfd, EFI)
Tested on: Raspberry Pi 2 (ld.bfd, ubldr) [manu]
Tested on: Banana Pi-M2 (ld.bfd, ubldr) [manu]
Reviewed by: andrew, emaste, imp
Differential Revision: https://reviews.freebsd.org/D13942
stand/arm/uboot/ldscript.arm
stand/efi/loader/arch/arm/ldscript.arm