diff options
author | Nick Clifton <nickc@redhat.com> | 2001-05-23 08:23:27 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2001-05-23 08:23:27 +0000 |
commit | d9bc7a4499c25b26971d80e2392a6da6e84cbe21 (patch) | |
tree | 1aaf6ffea75c9c46b0a162c38d9fec15951869a2 /bfd/elf.c | |
parent | 60edd2d3f1f08fff5dc35137a16c5ec4eaa8392e (diff) | |
download | gdb-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |