[PATCH,ppc] fix segfaults when relocating against undefined symbols

Alan Modra amodra@bigpond.net.au
Wed Oct 10 00:49:00 GMT 2007


On Tue, Oct 09, 2007 at 11:15:42AM -0700, Nathan Froyd wrote:
>  	case R_PPC_TOC16:			/* phony GOT16 relocations */
> -	  BFD_ASSERT (sec != NULL);
> +	  if (sec == NULL)
> +	    continue;

I think you should break rather than continue, so that you get the
unresolvable relocation error.  OK with that difference in all the
cases you change.

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list