Problems compiling elfxx-sparc.c

Alan Modra amodra@bigpond.net.au
Thu Apr 21 03:16:00 GMT 2005


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.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre



More information about the Binutils mailing list