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
F164697175: D45257.diff
Mon, Aug 3, 5:50 AM
Unknown Object (File)
Thu, Jul 30, 4:20 PM
Unknown Object (File)
Tue, Jul 28, 11:44 AM
Unknown Object (File)
Tue, Jul 28, 7:55 AM
Unknown Object (File)
Tue, Jul 21, 12:39 AM
Unknown Object (File)
Mon, Jul 20, 5:40 AM
Unknown Object (File)
Sat, Jul 18, 7:26 PM
Unknown Object (File)
Thu, Jul 9, 10:29 AM
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