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: Problems compiling elfxx-sparc.c


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


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