HomeFreeBSD

stand/efi: Pass --no-dynamic-linker to ld.bfd >= 2.34.

Description

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)

Details

Provenance
jhbAuthored on Feb 2 2022, 8:18 PM
Reviewer
imp
Differential Revision
D34124: stand/efi: Pass --no-dynamic-linker to ld.bfd >= 2.34.
Parents
rGfbe7e06a3ce2: libsa: Add missing GNU-stack annotations to _setjmp.S.
Branches
Unknown
Tags
Unknown