RFC: Disallow protected data symbol with copy relocation?

Marc Espie espie@quatramaran.ens.fr
Sat Jan 22 17:36:00 GMT 2005


In article <20050121064513.GA28057@lucon.org> you write:
>I think it has something to do with the psABI and Linux runtime,
                                                   ^^^^^^^^^^^^^
>something like relocation is 32bit and main/DSO are several GB
>apart. For x86_64, we can warn it when creating such a shared
>library and refuse to link if it is referenced by main.

So, if I interpret this correctly, this doesn't work on Linux due to
some specific aspects of the memory map and the way the dynamic linker
works.

Do you have any idea how this translates to other OSes ?

Am I misreading your proposal, or do I see blanket statements such as
`ia32' or `x86_64', which do lead me to believe you want to force this
for any ia32/x86_64 elf target, without any regard for the actual OS ?



More information about the Gcc mailing list