This is the mail archive of the binutils@sources.redhat.com 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: elfxx-ia64.c question


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


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