[PATCH] linker regression fix
H. J. Lu
hjl@lucon.org
Fri Oct 21 14:47:00 GMT 2005
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.
More information about the Binutils
mailing list