binutils broken?

H . J . Lu hjl@lucon.org
Sun Oct 28 09:17:00 GMT 2001


On Sun, Oct 28, 2001 at 11:29:05PM +1100, matthew green wrote:
> 
>    Alan mentioned that mrg@redhat.com's PPC change brake some PPC targets.
>    See
>    
>    http://sources.redhat.com/ml/binutils/2001-10/msg00473.html
> 
> 
> 
> yes, i was wondering about the details on that, if it goes
> beyond that already discussed here?

I think I found the reason. For ELF/PPC, you cannot change the
relocation type of a relocation against removed a linkonce section
to R_PPC_NONE. That means we may have to introduce a new function
to let each ELF target decide what to do with relocations against
against removed linkonce sections. We can add something like

bfd_vma
bfd_elf_removed_linkonce_r_info (abfd, r_info);
   bfd *abfd;
   bfd_vma r_info;
{
  return ELF_R_INFO (0, 0);
}

Each backend can override it if necassry. Alan, could you please look
into it?

Thanks.


H.J.



More information about the Binutils mailing list