RFC: Disallow protected data symbol with copy relocation?
Ian Lance Taylor
ian@airs.com
Fri Jan 21 05:07:00 GMT 2005
"H. J. Lu" <hjl@lucon.org> writes:
> Protected data symbol with copy relocation never works as intended.
> The problem is with copy relocation, main and DSO see different
> copies of the protected data symbol. Updating one won't change
> the other. You can't compare their addresses either. There is no
> easy way to get it to work unless the psABI is changed. I am proposing
> to make linker to reject protected data symbol with copy relocation.
> Any comments?
Why would the linker ever generate a copy relocation for a protected
symbol? I don't see how that makes sense.
Ian
More information about the Binutils
mailing list