aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2001-05-23 08:23:27 +0000
committerNick Clifton <nickc@redhat.com>2001-05-23 08:23:27 +0000
commitd9bc7a4499c25b26971d80e2392a6da6e84cbe21 (patch)
tree1aaf6ffea75c9c46b0a162c38d9fec15951869a2 /bfd/elf.c
parent60edd2d3f1f08fff5dc35137a16c5ec4eaa8392e (diff)
downloadgdb-d9bc7a4499c25b26971d80e2392a6da6e84cbe21.zip
gdb-d9bc7a4499c25b26971d80e2392a6da6e84cbe21.tar.gz
gdb-d9bc7a4499c25b26971d80e2392a6da6e84cbe21.tar.bz2
Replace sh_size/sh_entsize with NUM_SHDR_ENTRIES
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index e424ce8..fc31cdc 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -1449,7 +1449,7 @@ bfd_section_from_shdr (abfd, shindex)
}
*hdr2 = *hdr;
elf_elfsections (abfd)[shindex] = hdr2;
- target_sect->reloc_count += hdr->sh_size / hdr->sh_entsize;
+ target_sect->reloc_count += NUM_SHDR_ENTRIES (hdr);
target_sect->flags |= SEC_RELOC;
target_sect->relocation = NULL;
target_sect->rel_filepos = hdr->sh_offset;