aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2000-04-04 23:05:32 +0000
committerH.J. Lu <hjl.tools@gmail.com>2000-04-04 23:05:32 +0000
commitdd27201edf3ec4449fc70126afcb8c6255ca02ff (patch)
tree4304d168f1e65b4254c1b4b6ad5ede13d70a3757
parente30e5a6a9b8c2120380113012852e69a39cf2c9e (diff)
downloadgdb-dd27201edf3ec4449fc70126afcb8c6255ca02ff.zip
gdb-dd27201edf3ec4449fc70126afcb8c6255ca02ff.tar.gz
gdb-dd27201edf3ec4449fc70126afcb8c6255ca02ff.tar.bz2
2000-04-04 H.J. Lu <hjl@gnu.org>
* readelf.c (process_symbol_table): Correctly read in symbol versioning information.
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/readelf.c18
2 files changed, 14 insertions, 9 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index a94b213..e8f2604 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,8 @@
+2000-04-04 H.J. Lu <hjl@gnu.org>
+
+ * readelf.c (process_symbol_table): Correctly read in symbol
+ versioning information.
+
2000-04-04 Alan Modra <alan@linuxcare.com.au>
* po/binutils.pot: Regenerate.
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 53ba381..050ef9c 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