elfxx-ia64.c question

Alan Modra amodra@bigpond.net.au
Wed Jan 29 02:45:00 GMT 2003

On Tue, Jan 28, 2003 at 01:26:42PM -0800, David Mosberger wrote:
> >>>>> On Tue, 28 Jan 2003 12:08:46 -0800, Richard Henderson <rth@redhat.com> said:
>   Rich> On Tue, Jan 28, 2003 at 10:58:41AM -0800, David Mosberger
>   Rich> wrote:
>   >> Alan mentioned something about weak references, but I didn't
>   >> fully understand the exact circumstances he was referring to.
>   >> Could someone provide a specific example (or reason) or where
>   >> things fail if @secrel() is allowed to produce negative values?
>   Rich> I can't remember.  You can try removing that and rebuilding
>   Rich> the world and see what happens.
> OK, I'll try to do this.

I was thinking of the case where a SECREL32 reloc is used against an
undefined weak sym, and the base address of the section in question
is located above 1<<32.  Under those circumstances you'll get a
reloc overflow.  Same goes for dynamic syms (if such are allowed in
SECREL relocs).

Alan Modra
IBM OzLabs - Linux Technology Centre

More information about the Binutils mailing list