From 4007db3b5ab000bae012b9ee4774a6f552433559 Mon Sep 17 00:00:00 2001 From: schwab Date: Fri, 6 Aug 2004 13:13:28 +0000 Subject: [PATCH] * readelf.c (dump_relocations): Fix typo when calculating sec_index. --- binutils/ChangeLog | 5 +++++ binutils/readelf.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/binutils/ChangeLog b/binutils/ChangeLog index 500124d779..9889df0fa2 100644 --- a/binutils/ChangeLog +++ b/binutils/ChangeLog @@ -1,3 +1,8 @@ +2004-08-06 Andreas Schwab + + * readelf.c (dump_relocations): Fix typo when calculating + sec_index. + 2004-08-02 Jakub Bogusz * dllwrap.c (deduce_name): Fix typos introduced when program_name diff --git a/binutils/readelf.c b/binutils/readelf.c index 2a750cee08..2d2c337088 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); -- 2.11.0