This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Problems compiling elfxx-sparc.c
On Thu, 21 Apr 2005 12:46:36 +0930
Alan Modra <amodra@bigpond.net.au> wrote:
> On Wed, Apr 20, 2005 at 11:33:54AM -0700, David S. Miller wrote:
> > - return ELF64_R_SYM (r_info);
> > + bfd_vma r_symndx = ELF32_R_SYM (r_info);
> > + return (r_symndx >> 24);
>
> Better would be to not compile this function if BFD64 is not defined.
> Or call abort or something. The warning is telling you that if this
> function is ever called when bfd_vma is 32-bit, then something is badly
> broken.
I merely copied over the trick that the generic BFD elf handling
uses to deal with this situation. Perhaps the same shift should
be #ifdef'd out of bfd/elflink.c when not BFD64 as well? :-)