[patch bfd]: Don't emit auxilary information for discared sections for pe-coff
Alan Modra
amodra@gmail.com
Thu Sep 29 04:54:00 GMT 2011
On Tue, Sep 27, 2011 at 02:38:19PM +0200, Kai Tietz wrote:
> diff -u -r1.80 coffgen.c
> --- bfd/coffgen.c 17 Aug 2011 00:39:39 -0000 1.80
> +++ bfd/coffgen.c 27 Sep 2011 11:21:47 -0000
> @@ -921,6 +921,9 @@
> void * buf;
> bfd_size_type symesz;
>
> + if ((bfd_get_section_flags (abfd, symbol->section) & SEC_LINK_ONCE) != 0
> + && symbol->section->output_section == bfd_abs_section_ptr)
> + return TRUE;
Conditional on link_info.strip_discarded?
> if (native->u.syment.n_sclass == C_FILE)
> symbol->flags |= BSF_DEBUGGING;
>
> @@ -996,7 +999,10 @@
> asection *output_section = symbol->section->output_section
> ? symbol->section->output_section
> : symbol->section;
> -
> + if ((bfd_get_section_flags (abfd, symbol->section) & SEC_LINK_ONCE) != 0
> + && symbol->section->output_section
> + == bfd_abs_section_ptr)
> + return TRUE;
This hunk seems unnecessary, given that coff_write_alien_symbol calls
coff_write_symbol.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list