This is the mail archive of the binutils@sourceware.org mailing list for the binutils 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: PowerpC pointer_equality_needed optimisation


On Sat, Feb 23, 2008 at 02:50:30PM -0800, H.J. Lu wrote:
> Hi Alan,
> 
> Is this related to
> 
> http://gcc.gnu.org/bugzilla/show_bug.cgi?id=32219
> 
> Does the testcase work with PIE on PPC?

Yes it does, and I expect that making the ref_regular_nonweak change
to x86 ld with make it work on x86 too.

> >  +                   (*_bfd_error_handler)
> >  +                     (_("weak reference to %s in non-pic code"
> >  +                        " will break function pointer comparisons"),
> >  +                      h->root.root.string);
> >  +                   sym->st_value = 0;

BTW, I will be removing this warning message as it triggers on
_Jv_RegisterClasses.  Also, I managed to confuse myself over when the
problems happens..  It isn't non-pic code, which is hopelessly broken
even with this change, but pic code. 

-- 
Alan Modra
Australia Development Lab, IBM


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