From 7330fb86f25844235e4a5c8107b7fdc6be95e0dd Mon Sep 17 00:00:00 2001 From: Alan Modra Date: Thu, 8 Aug 2002 00:20:16 +0000 Subject: [PATCH] * elflink.h (elf_link_output_extsym): Don't output symbols from SEC_EXCLUDE sections. --- bfd/ChangeLog | 7 +++++-- bfd/elflink.h | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 54c4ae983b3..41dc63ea619 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,8 @@ 2002-08-08 Alan Modra + * elflink.h (elf_link_output_extsym): Don't output symbols from + SEC_EXCLUDE sections. + * aoutx.h (aout_link_write_symbols): Correct handling of warning syms. 2002-08-07 Alan Modra @@ -209,9 +212,9 @@ * elfarm-nabi.c: Do not include elf32-arm.h if ELFARM_NABI_C_INCLUDED is defined. * targets.c: Add bfd_elf32_{big|little}armqnx_vec. - + 2002-07-30 Nick Clifton - + * po/sv.po: Updated Swedish translation. 2002-07-30 Jakub Jelinek diff --git a/bfd/elflink.h b/bfd/elflink.h index 29c55514bb5..59cc397a209 100644 --- a/bfd/elflink.h +++ b/bfd/elflink.h @@ -6342,7 +6342,7 @@ elf_link_output_extsym (h, data) /* If we're stripping it, then it was just a dynamic symbol, and there's nothing else to do. */ - if (strip) + if (strip || (input_sec->flags & SEC_EXCLUDE) != 0) return true; h->indx = bfd_get_symcount (finfo->output_bfd); -- 2.30.2