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)
Sat, Nov 16, 9:42 AM
Unknown Object (File)
Sat, Nov 16, 3:57 AM
Unknown Object (File)
Sat, Nov 16, 3:56 AM
Unknown Object (File)
Thu, Nov 14, 9:57 AM
Unknown Object (File)
Mon, Nov 11, 4:12 AM
Unknown Object (File)
Sat, Nov 9, 4:50 PM
Unknown Object (File)
Fri, Nov 8, 7:30 PM
Unknown Object (File)
Tue, Nov 5, 3:05 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