aboutsummaryrefslogtreecommitdiff
path: root/binutils/readelf.c
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2004-08-06 13:13:30 +0000
committerAndreas Schwab <schwab@linux-m68k.org>2004-08-06 13:13:30 +0000
commitefcb5b0e5fda6b3589d00eeb057800fe856f909b (patch)
tree5360716ede8f500c43297c876f99d9d594fb927c /binutils/readelf.c
parent9e6ce191775d5787be1eb94706f97604d355e48a (diff)
downloadgdb-efcb5b0e5fda6b3589d00eeb057800fe856f909b.zip
gdb-efcb5b0e5fda6b3589d00eeb057800fe856f909b.tar.gz
gdb-efcb5b0e5fda6b3589d00eeb057800fe856f909b.tar.bz2
* readelf.c (dump_relocations): Fix typo when calculating
sec_index.
Diffstat (limited to 'binutils/readelf.c')
-rw-r--r--binutils/readelf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/binutils/readelf.c b/binutils/readelf.c
index 2a750ce..2d2c337 100644
--- a/binutils/readelf.c
+++ b/binutils/readelf.c
@@ -1225,7 +1225,7 @@ dump_relocations (FILE *file,
if (psym->st_shndx < SHN_LORESERVE)
sec_index = psym->st_shndx;
- else if (psym->st_shndx > SHN_LORESERVE)
+ else if (psym->st_shndx > SHN_HIRESERVE)
sec_index = psym->st_shndx - (SHN_HIRESERVE + 1
- SHN_LORESERVE);