ld: rebinding refs to A to symbol B
Richard Earnshaw (lists)
Richard.Earnshaw@arm.com
Wed Feb 5 13:49:18 GMT 2025
On 01/02/2025 01:05, Alan Modra wrote:
> On Fri, Jan 31, 2025 at 06:31:51PM +0000, Richard Earnshaw (lists) wrote:
>> I suspect the problem is that PROVIDE is documented as only generating the definition iff __sync_synchronize is *not* defined, but in my case that isn't true and I need to override the existing definition in libgcc with the alternative.
>
> Yes, that would prevent PROVIDE from doing anything.
>
Right, which brings me back to my original question: is there a way of overriding an unresolved reference, iff it exists without creating a reference as as --defsym does?
More information about the Binutils
mailing list