This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: PR ld/3958: ELF linker failed to handle relocation against ABS section
- From: Andreas Schwab <schwab at suse dot de>
- To: "H. J. Lu" <hjl at lucon dot org>
- Cc: binutils at sources dot redhat dot com
- Date: Sat, 03 Feb 2007 18:20:42 +0100
- Subject: Re: PATCH: PR ld/3958: ELF linker failed to handle relocation against ABS section
- References: <20070203164518.GA16945@lucon.org>
"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."