Why deos ELF/PPC care R_PPC_NONE?

Alan Modra amodra@bigpond.net.au
Thu Oct 18 18:42:00 GMT 2001


On Thu, Oct 18, 2001 at 01:28:49PM -0700, H . J . Lu wrote:
> 
> 	* elf32-i370.c (i370_elf_relocate_section): Ignore R_XXX_NONE.
> 	* elf32-ppc.c (ppc_elf_relocate_section): Likewise.

I'd call this an "obvious fix", except for the fact that elf32_ppc.c
specifically mentions R_PPC_NONE in the group of relocations "that
always need to be propagated if this is a shared object".  Go ahead
and apply it anyway;  The only real use I can think of for a _NONE
reloc is in tying sections together during --gc-sections, and I don't
think ppc binutils does anything like that.

Alan



More information about the Binutils mailing list