Page MenuHomeFreeBSD

stand/efi: Fix for binutils when targeting arm64
ClosedPublic

Authored by andrew on May 20 2024, 11:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Tue, Oct 6, 2:18 AM
Unknown Object (File)
Thu, Sep 24, 1:26 AM
Unknown Object (File)
Thu, Sep 17, 4:35 AM
Unknown Object (File)
Fri, Sep 11, 4:44 PM
Unknown Object (File)
Wed, Sep 9, 12:03 AM
Unknown Object (File)
Sep 7 2026, 8:08 AM
Unknown Object (File)
Sep 5 2026, 4:27 AM
Unknown Object (File)
Sep 4 2026, 8:40 PM
Subscribers

Details

Summary

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.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable