aboutsummaryrefslogtreecommitdiffstats
path: root/src/dso.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/dso.c')
-rw-r--r--src/dso.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/dso.c b/src/dso.c
index d4eceb4..1dac153 100644
--- a/src/dso.c
+++ b/src/dso.c
@@ -285,7 +285,7 @@ fdopen_dso (int fd, const char *name)
Elf *elf = NULL;
GElf_Ehdr ehdr;
GElf_Addr last_off;
- int i, j, k, last, *sections, *invsections;
+ int i, j, k, *sections, *invsections;
DSO *dso = NULL;
struct PLArch *plarch;
extern struct PLArch __start_pl_arch[], __stop_pl_arch[];
@@ -390,11 +390,10 @@ fdopen_dso (int fd, const char *name)
sections = (int *) alloca (dso->ehdr.e_shnum * sizeof (int) * 2);
sections[0] = 0;
- for (i = 1, j = 1, k = dso->ehdr.e_shnum, last = -1;
+ for (i = 1, j = 1, k = dso->ehdr.e_shnum;
i < dso->ehdr.e_shnum; ++i)
if (RELOCATE_SCN (dso->shdr[i].sh_flags))
{
- last = i;
sections[j++] = i;
}
else