This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [PATCH] linker regression fix
- From: "H. J. Lu" <hjl at lucon dot org>
- To: Jan Beulich <JBeulich at novell dot com>
- Cc: binutils at sourceware dot org
- Date: Fri, 21 Oct 2005 07:47:15 -0700
- Subject: Re: [PATCH] linker regression fix
- References: <43591527.76F0.0078.0@novell.com>
On Fri, Oct 21, 2005 at 04:19:51PM +0200, Jan Beulich wrote:
> The patch in http://sourceware.org/ml/binutils/2005-04/msg00325.html
> causes
> local absolute symbols, including .file ones, to be removed from the
> linker
> output. This patch tries to adjust this.
>
> +++ 2005-10-20/bfd/elflink.c 2005-10-20 16:59:37.552695912 +0200
> @@ -6871,8 +6871,9 @@ elf_link_input_bfd (struct elf_final_lin
> continue;
>
> /* If the section is not in the output BFD's section list, it is
> not
> - being output. */
> - if (bfd_section_removed_from_list (output_bfd,
> isec->output_section))
> + being output. But don't consider the *ABS* section here. */
> + if (bfd_section_removed_from_list (output_bfd,
> isec->output_section)
> + && !bfd_is_abs_section (isec->output_section))
> continue;
>
Shouldn't bfd_section_removed_from_list be modified to handle the ABS
section?
H.J.