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 | e5737f21997ad6d66ca20f48c4be8ba90b1e70c0 (patch) | |
tree | c5bcbd60c3ccb2a66be479036544c15a9fdddea7 /bfd/elf64-alpha.c | |
parent | 2dbcb871c99a5743bc9de97b9a00caa3e9ca9a86 (diff) | |
download | gdb-e5737f21997ad6d66ca20f48c4be8ba90b1e70c0.tar.gz |
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 06891d3e0e5..bd89a7b8053 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; |