HomeFreeBSD

stand/efi: Fix for binutils when targeting arm64

Description

stand/efi: Fix for binutils when targeting arm64

When linking with ld.bfd it complain with the following:

/usr/local/bin/aarch64-unknown-freebsd14.0-ld: start.o: relocation
R_AARCH64_ABS32 against `__data_size' can not be used when making a
shared object

Fix this by marking the __data_size with ABSOLUTE. This returns a
non-relocatable value which appears to be the same behaviour of lld.

Reviewed by: imp
Sponsored by: Arm Ltd
Differential Revision: https://reviews.freebsd.org/D45257

(cherry picked from commit 9f44638ef2c46861565b89bb01bbeeab17755649)

Details

Provenance
andrewAuthored on May 22 2024, 8:17 AM
Reviewer
imp
Differential Revision
D45257: stand/efi: Fix for binutils when targeting arm64
Parents
rG7f616da3cea0: arm: Add a missing interrupt to the generic timer
Branches
Unknown
Tags
Unknown