diff options
author | Ian Lance Taylor <ian@airs.com> | 1994-06-23 20:14:58 +0000 |
---|---|---|
committer | Ian Lance Taylor <ian@airs.com> | 1994-06-23 20:14:58 +0000 |
commit | 51fc377bab22057d52d81146902d7b2e4a5d5675 (patch) | |
tree | a3791a7ef69d0f2b0326a553391de2d9edfdf645 /bfd/elfcode.h | |
parent | 1f8b3b5746e96f75156c3496484b1c19efe7e9e1 (diff) | |
download | gdb-51fc377bab22057d52d81146902d7b2e4a5d5675.zip gdb-51fc377bab22057d52d81146902d7b2e4a5d5675.tar.gz gdb-51fc377bab22057d52d81146902d7b2e4a5d5675.tar.bz2 |
* elfcode.h (elf_object_p): Don't set DYNAMIC just because there
is an SHT_DYNAMIC section.
Diffstat (limited to 'bfd/elfcode.h')
-rw-r--r-- | bfd/elfcode.h | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/bfd/elfcode.h b/bfd/elfcode.h index 68c2479..85d5fd9 100644 --- a/bfd/elfcode.h +++ b/bfd/elfcode.h @@ -962,11 +962,6 @@ elf_object_p (abfd) goto got_no_match; elf_swap_shdr_in (abfd, &x_shdr, i_shdrp + shindex); elf_elfsections (abfd)[shindex] = i_shdrp + shindex; - - /* If this is a .dynamic section, mark the object file as being - dynamically linked. */ - if (i_shdrp[shindex].sh_type == SHT_DYNAMIC) - abfd->flags |= DYNAMIC; } if (i_ehdrp->e_shstrndx) { @@ -2888,24 +2883,12 @@ elf_get_dynamic_symtab_upper_bound (abfd) return symtab_size; } -/* - This function return the number of bytes required to store the - relocation information associated with section <<sect>> - attached to bfd <<abfd>> - -*/ long elf_get_reloc_upper_bound (abfd, asect) bfd *abfd; sec_ptr asect; { - if (asect->flags & SEC_RELOC) - { - /* either rel or rela */ - return elf_section_data (asect)->rel_hdr.sh_size; - } - else - return 0; + return (asect->reloc_count + 1) * sizeof (arelent *); } static boolean |