Page MenuHomeFreeBSD

stand/efi: Fix for binutils when targeting arm64
ClosedPublic

Authored by andrew on Mon, May 20, 11:59 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 8, 1:19 PM
Unknown Object (File)
Sat, Jun 1, 2:47 PM
Unknown Object (File)
Wed, May 29, 11:07 PM
Unknown Object (File)
Wed, May 22, 8:20 PM
Unknown Object (File)
Wed, May 22, 12:29 PM
Unknown Object (File)
Wed, May 22, 10:14 AM
Unknown Object (File)
Wed, May 22, 3:23 AM
Unknown Object (File)
Wed, May 22, 3:20 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 Not Applicable
Unit
Tests Not Applicable

Event Timeline

Even though we relocate this binary, this value is invariant. And less than 32 bits, though that shouldn't matter here

This revision is now accepted and ready to land.Mon, May 20, 12:54 PM