From: H.J. Lu Date: Tue, 4 Apr 2000 23:05:32 +0000 (+0000) Subject: 2000-04-04 H.J. Lu X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=dd27201edf3ec4449fc70126afcb8c6255ca02ff;p=binutils-gdb.git 2000-04-04 H.J. Lu * readelf.c (process_symbol_table): Correctly read in symbol versioning information. --- diff --git a/binutils/ChangeLog b/binutils/ChangeLog index a94b213c568..e8f2604aaf5 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2000-04-04 H.J. Lu + + * readelf.c (process_symbol_table): Correctly read in symbol + versioning information. + 2000-04-04 Alan Modra * po/binutils.pot: Regenerate. diff --git a/binutils/readelf.c b/binutils/readelf.c index 53ba381d0fb..050ef9c386e 100644 --- a/binutils/readelf.c +++ b/binutils/readelf.c @@ -3783,8 +3783,8 @@ process_version_sections (file) { Elf_External_Verneed evn; Elf_External_Vernaux evna; - Elf_Internal_Vernaux ivna; - unsigned long vna_off; + Elf_Internal_Vernaux ivna; + unsigned long vna_off; GET_DATA (offset, evn, "version need"); @@ -3882,10 +3882,10 @@ process_version_sections (file) do { - Elf_Internal_Vernaux ivna; + Elf_Internal_Vernaux ivna; Elf_External_Verneed evn; Elf_External_Vernaux evna; - unsigned long a_off; + unsigned long a_off; GET_DATA (offset, evn, "version need"); @@ -4310,15 +4310,15 @@ process_symbol_table (file) offset = version_info [DT_VERSIONTAGIDX (DT_VERNEED)] - loadaddr; - GET_DATA (offset, evn, "version need"); - - ivn.vn_aux = BYTE_GET (evn.vn_aux); - ivn.vn_next = BYTE_GET (evn.vn_next); - do { unsigned long vna_off; + GET_DATA (offset, evn, "version need"); + + ivn.vn_aux = BYTE_GET (evn.vn_aux); + ivn.vn_next = BYTE_GET (evn.vn_next); + vna_off = offset + ivn.vn_aux; do