aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-07-04 14:40:25 +0000
committerAlan Modra <amodra@gmail.com>2002-07-04 14:40:25 +0000
commitbc0ba53708a7da5955ae96f988165ffd15b8c3f5 (patch)
treea28134406de4d0f9434da0d966181c91cc788fed /bfd/elflink.c
parent797fc050a0bbffe0351d43369597d9e0945de71c (diff)
downloadfsf-binutils-gdb-bc0ba53708a7da5955ae96f988165ffd15b8c3f5.zip
fsf-binutils-gdb-bc0ba53708a7da5955ae96f988165ffd15b8c3f5.tar.gz
fsf-binutils-gdb-bc0ba53708a7da5955ae96f988165ffd15b8c3f5.tar.bz2
* section.c (_bfd_strip_section_from_output): Remove unnecessary
link order code. Don't actually remove the output section here; Just set a flag for the linker to do so. * elflink.c (_bfd_elf_link_renumber_dynsyms): Test for removed sections when setting up output section dynsyms.
Diffstat (limited to 'bfd/elflink.c')
-rw-r--r--bfd/elflink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 25a5193..c32ff1c 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -357,7 +357,8 @@ _bfd_elf_link_renumber_dynsyms (output_bfd, info)
{
asection *p;
for (p = output_bfd->sections; p ; p = p->next)
- elf_section_data (p)->dynindx = ++dynsymcount;
+ if ((p->flags & SEC_EXCLUDE) == 0)
+ elf_section_data (p)->dynindx = ++dynsymcount;
}
if (elf_hash_table (info)->dynlocal)