aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
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 /binutils/readelf.c
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.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c18
1 files changed, 9 insertions, 9 deletions
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