This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: rs6000_flag_pic


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]