aboutsummaryrefslogtreecommitdiff
path: root/bfd/elflink.h
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-07-04 13:26:30 +0000
committerAlan Modra <amodra@gmail.com>2002-07-04 13:26:30 +0000
commit797fc050a0bbffe0351d43369597d9e0945de71c (patch)
tree358944c6dec033cae716ec7621322eecfe4efc1d /bfd/elflink.h
parent9b4f1ba7ede77d776fabb9642cbeef5091e38e1d (diff)
downloadgdb-797fc050a0bbffe0351d43369597d9e0945de71c.zip
gdb-797fc050a0bbffe0351d43369597d9e0945de71c.tar.gz
gdb-797fc050a0bbffe0351d43369597d9e0945de71c.tar.bz2
* elflink.h (elf_link_add_object_symbols): Revert 1999-09-02 hpux
fudge. * elf.c (bfd_section_from_shdr): Work around broken hpux shared libs here instead.
Diffstat (limited to 'bfd/elflink.h')
-rw-r--r--bfd/elflink.h17
1 files changed, 0 insertions, 17 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h
index 2a6428f..6c1d0d9 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -1451,23 +1451,6 @@ elf_link_add_object_symbols (abfd, info)
goto error_return;
shlink = elf_elfsections (abfd)[elfsec]->sh_link;
- {
- /* The shared libraries distributed with hpux11 have a bogus
- sh_link field for the ".dynamic" section. This code detects
- when SHLINK refers to a section that is not a string table
- and tries to find the string table for the ".dynsym" section
- instead. */
- Elf_Internal_Shdr *shdr = elf_elfsections (abfd)[shlink];
- if (shdr->sh_type != SHT_STRTAB)
- {
- asection *ds = bfd_get_section_by_name (abfd, ".dynsym");
- int elfdsec = _bfd_elf_section_from_bfd_section (abfd, ds);
- if (elfdsec == -1)
- goto error_return;
- shlink = elf_elfsections (abfd)[elfdsec]->sh_link;
- }
- }
-
extdyn = dynbuf;
extdynend = extdyn + s->_raw_size / sizeof (Elf_External_Dyn);
rpath = 0;