This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: RFC: Properly handle protected data symbol with copy relocation
On Mon, Jan 24, 2005 at 02:47:50PM -0500, Ian Lance Taylor wrote:
> "H. J. Lu" <hjl@lucon.org> writes:
> Seems more or less reasonable. I still don't understand why x86_64
> can't simply use a writable text section. I understand that it
> doesn't do it; I don't understand why it can't do it.
The problem is that x86_64 uses a 64-bit address space, so 32-bit
pc-relative relocations in the executable may not be able to reach into
a shared library.
--
Alan Modra
IBM OzLabs - Linux Technology Centre