PATCH: PR ld/3958: ELF linker failed to handle relocation against ABS section

Andreas Schwab schwab@suse.de
Sat Feb 3 19:58:00 GMT 2007


"H. J. Lu" <hjl@lucon.org> writes:

> --- bfd/elf32-d10v.c.abs	2006-11-02 19:36:06.000000000 -0800
> +++ bfd/elf32-d10v.c	2007-02-03 08:06:08.000000000 -0800
> @@ -469,12 +469,11 @@ elf32_d10v_relocate_section (bfd *output
>  				   unresolved_reloc, warned);
>  	}
>  
> -      if (r_symndx == 0)
> +      if (sec && elf_discarded_section (sec))
>  	{
> -	  /* r_symndx will be zero only for relocs against symbols from
> -	     removed linkonce sections, or sections discarded by a linker
> -	     script.  For these relocs, we just want the section contents
> -	     zeroed.  Avoid any special processing.  */
> +	  /* For relocs against symbols from removed linkonce sections,
> +	   * or sections discarded by a linker script, we just want the
> +	   * section contents zeroed.  Avoid any special processing.  */

Please fix the comment formatting (no leading asterisk), here and in a few
other files.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."



More information about the Binutils mailing list