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)
Sun, Apr 27, 4:26 AM
Unknown Object (File)
Thu, Apr 24, 5:57 PM
Unknown Object (File)
Tue, Apr 22, 3:31 PM
Unknown Object (File)
Mon, Apr 21, 1:49 AM
Unknown Object (File)
Mon, Apr 14, 5:04 PM
Unknown Object (File)
Mar 10 2025, 8:26 AM
Unknown Object (File)
Feb 22 2025, 2:31 PM
Unknown Object (File)
Feb 5 2025, 2:00 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 Skipped
Unit
Tests Skipped
Build Status
Buildable 57771
Build 54659: arc lint + arc unit