This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PowerpC pointer_equality_needed optimisation
- From: Daniel Jacobowitz <drow at false dot org>
- To: binutils at sourceware dot org
- Date: Fri, 22 Feb 2008 22:03:46 -0500
- Subject: Re: PowerpC pointer_equality_needed optimisation
- References: <20080223015227.GE9407@bubble.grove.modra.org>
On Sat, Feb 23, 2008 at 12:22:29PM +1030, Alan Modra wrote:
> + else if (!h->ref_regular_nonweak)
> + {
> + /* Choose your poison. We must have either text
> + dynamic relocations, broken function pointer
> + comparisons, or broken tests for a NULL
> + function pointer. */
> + (*_bfd_error_handler)
> + (_("weak reference to %s in non-pic code"
> + " will break function pointer comparisons"),
> + h->root.root.string);
> + sym->st_value = 0;
> + }
Isn't this warning going to trigger in, e.g., the gcc gthread_*
functions and thus in lots of applications?
--
Daniel Jacobowitz
CodeSourcery