aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>1997-03-03 21:32:39 +0000
committerUlrich Drepper <drepper@redhat.com>1997-03-03 21:32:39 +0000
commitd2f0374f2357aa0b877de767c9b3c8c86fbdbd89 (patch)
tree69af6849768d36e870a7c9e91aed7f02e68c0270 /bfd
parentba5b9ebadd49c5efc63d2dfbe9966dd6c06deea9 (diff)
downloadgdb-d2f0374f2357aa0b877de767c9b3c8c86fbdbd89.zip
gdb-d2f0374f2357aa0b877de767c9b3c8c86fbdbd89.tar.gz
gdb-d2f0374f2357aa0b877de767c9b3c8c86fbdbd89.tar.bz2
(elf_link_add_object_symbols): Use correct sh_size
entry for reading verdef records. Use correct braces for computing increments of extverdaux and exteverdef record pointers.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/elflink.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/bfd/elflink.h b/bfd/elflink.h
index 13406eb..940bd2a 100644
--- a/bfd/elflink.h
+++ b/bfd/elflink.h
@@ -416,8 +416,8 @@ elf_link_add_object_symbols (abfd, info)
goto error_return;
if (bfd_seek (abfd, verdefhdr->sh_offset, SEEK_SET) != 0
- || (bfd_read ((PTR) dynver, 1, hdr->sh_size, abfd)
- != hdr->sh_size))
+ || (bfd_read ((PTR) dynver, 1, verdefhdr->sh_size, abfd)
+ != verdefhdr->sh_size))
goto error_return;
extverdef = (const Elf_External_Verdef *) dynver;
@@ -431,7 +431,7 @@ elf_link_add_object_symbols (abfd, info)
/* Pick up the name of the version. */
extverdaux = ((const Elf_External_Verdaux *)
- (bfd_byte *) extverdef + intverdef->vd_aux);
+ ((bfd_byte *) extverdef + intverdef->vd_aux));
_bfd_elf_swap_verdaux_in (abfd, extverdaux, &intverdaux);
intverdef->vd_bfd = abfd;
@@ -440,7 +440,7 @@ elf_link_add_object_symbols (abfd, info)
intverdaux.vda_name);
extverdef = ((const Elf_External_Verdef *)
- (bfd_byte *) extverdef + intverdef->vd_next);
+ ((bfd_byte *) extverdef + intverdef->vd_next));
}
free (dynver);