]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
stand/efi: Pass --no-dynamic-linker to ld.bfd >= 2.34.
authorJohn Baldwin <jhb@FreeBSD.org>
Wed, 2 Feb 2022 20:18:43 +0000 (12:18 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Wed, 11 May 2022 00:06:26 +0000 (17:06 -0700)
commit8d3f27908b69d47f4e669d8fe424c79f6da33880
tree49767987c00b2a2bda66a2f67bfadbab589e0bc4
parentecd5ade6dcf718cc0622edd42228a952e8154b4f
stand/efi: Pass --no-dynamic-linker to ld.bfd >= 2.34.

ld.bfd in binutils 2.34+ now reports an error in more cases for custom
ldscripts that do not place PHDRs in a LOAD segment.  However, EFI
binaries are not dynamic binaries which need PHDRs, so pass
--no-dynamic-linker to disable this check.

Reviewed by: imp, emaste
Differential Revision: https://reviews.freebsd.org/D34124

(cherry picked from commit 8bd5e2f15cc9756e7d6b7feb43ec47f18a38e2bf)
stand/efi/boot1/Makefile
stand/efi/loader/Makefile