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/elf64-alpha.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/elf64-alpha.c')
-rw-r--r-- | bfd/elf64-alpha.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bfd/elf64-alpha.c b/bfd/elf64-alpha.c index 06891d3..bd89a7b 100644 --- a/bfd/elf64-alpha.c +++ b/bfd/elf64-alpha.c @@ -2831,7 +2831,7 @@ elf64_alpha_can_merge_gots (a, b) Elf_Internal_Shdr *symtab_hdr = &elf_tdata (bsub)->symtab_hdr; int i, n; - n = symtab_hdr->sh_size / symtab_hdr->sh_entsize - symtab_hdr->sh_info; + n = NUM_SHDR_ENTRIES (symtab_hdr) - symtab_hdr->sh_info; for (i = 0; i < n; ++i) { struct alpha_elf_got_entry *ae, *be; @@ -2903,7 +2903,7 @@ elf64_alpha_merge_gots (a, b) hashes = alpha_elf_sym_hashes (bsub); symtab_hdr = &elf_tdata (bsub)->symtab_hdr; - n = symtab_hdr->sh_size / symtab_hdr->sh_entsize - symtab_hdr->sh_info; + n = NUM_SHDR_ENTRIES (symtab_hdr) - symtab_hdr->sh_info; for (i = 0; i < n; ++i) { struct alpha_elf_got_entry *ae, *be, **pbe, **start; |