rs6000_flag_pic
Alan Modra
amodra@bigpond.net.au
Thu Mar 13 00:42:00 GMT 2003
On Wed, Mar 12, 2003 at 06:51:37PM -0500, David Edelsohn wrote:
> This functionality was implemented for AIX and PPC64 because
> vtables requiring relocations were being placed in the wrong section and
> not being shared.
OK, thanks for the info. Compiling a few quick examples (from
ld/testsuite/ld-selective/*.cc) shows that with my patch, the vtables
indeed go from being in rw sections to ro sections. However, the
vtables just have a bunch of R_PPC64_ADDR64 relocs, which won't be
dynamic. Hmm, I suppose the problem only shows up when linking
a -fno-pic app against shared libs. Do you have testcases?
--
Alan Modra
IBM OzLabs - Linux Technology Centre
More information about the Gcc-patches
mailing list