summaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2002-08-08 00:20:16 +0000
committerAlan Modra <amodra@bigpond.net.au>2002-08-08 00:20:16 +0000
commitbbd10130b75c0f910d85763977d80e4c304dc3e9 (patch)
tree35e1c135cdaf14809ccb1c933523bbb1c7e94926 /bfd/elflink.h
parentc6b9495a88c2c43dbedcf8b40eb34fc56e64739a (diff)
downloadgdb-bbd10130b75c0f910d85763977d80e4c304dc3e9.tar.gz
* elflink.h (elf_link_output_extsym): Don't output symbols from
SEC_EXCLUDE sections.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r--bfd/elflink.h2
1 files changed, 1 insertions, 1 deletions
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);