aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorIan Lance Taylor <ian@airs.com>1996-12-16 19:39:39 +0000
committerIan Lance Taylor <ian@airs.com>1996-12-16 19:39:39 +0000
commite85f2fbd1522788287510c836cc8e95293cf5188 (patch)
tree04b73590f68a64a48490e57c2f475828b6355e8a /bfd/elf.c
parentd4ba37afa0a5ca12f7095b3b9b4e00c925748329 (diff)
downloadgdb-e85f2fbd1522788287510c836cc8e95293cf5188.zip
gdb-e85f2fbd1522788287510c836cc8e95293cf5188.tar.gz
gdb-e85f2fbd1522788287510c836cc8e95293cf5188.tar.bz2
* elf.c (bfd_section_from_shdr): Don't check for reloc sections
against SEC_DEBUGGING sections here (revert patch of December 5). * elfcode.h (elf_object_p): Check for them here, instead.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 94d953f..70d36a5 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -864,20 +864,7 @@ bfd_section_from_shdr (abfd, shindex)
represent such a section, so at least for now, we don't
try. We just present it as a normal section. */
if (hdr->sh_link != elf_onesymtab (abfd))
- {
- if (! _bfd_elf_make_section_from_shdr (abfd, hdr, name))
- return false;
- if (hdr->bfd_section != NULL
- && hdr->sh_info > 0
- && bfd_section_from_shdr (abfd, hdr->sh_info))
- {
- target_sect = bfd_section_from_elf_index (abfd, hdr->sh_info);
- if (target_sect != NULL
- && (target_sect->flags & SEC_DEBUGGING) != 0)
- hdr->bfd_section->flags |= SEC_DEBUGGING;
- }
- return true;
- }
+ return _bfd_elf_make_section_from_shdr (abfd, hdr, name);
if (! bfd_section_from_shdr (abfd, hdr->sh_info))
return false;