diff options
author | Roland McGrath <roland@redhat.com> | 2011-02-08 19:46:50 -0800 |
---|---|---|
committer | Roland McGrath <roland@redhat.com> | 2011-02-08 19:46:50 -0800 |
commit | 4db89f04bb59327abd7a3b60e88f2e7e73c65c79 (patch) | |
tree | 479e2837da08532f890c9d0a1336830913e32a0e /src/elflint.c | |
parent | 33231318a11853b4d2ad00f6417442f38bddd8c2 (diff) | |
download | elfutils-4db89f04bb59327abd7a3b60e88f2e7e73c65c79.tar.gz |
elflint: Remove unused variables.
Diffstat (limited to 'src/elflint.c')
-rw-r--r-- | src/elflint.c | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/src/elflint.c b/src/elflint.c index 152b23a8..c1227355 100644 --- a/src/elflint.c +++ b/src/elflint.c @@ -1574,10 +1574,6 @@ check_dynamic (Ebl *ebl, GElf_Ehdr *ehdr, GElf_Shdr *shdr, int idx) [DT_STRSZ] = true, [DT_SYMENT] = true }; - GElf_Addr reladdr = 0; - GElf_Word relsz = 0; - GElf_Addr pltreladdr = 0; - GElf_Word pltrelsz = 0; memset (has_dt, '\0', sizeof (has_dt)); memset (has_val_dt, '\0', sizeof (has_val_dt)); @@ -1675,15 +1671,6 @@ section [%2d] '%s': entry %zu: level 2 tag %s used\n"), section [%2d] '%s': entry %zu: DT_PLTREL value must be DT_REL or DT_RELA\n"), idx, section_name (ebl, idx), cnt); - if (dyn->d_tag == DT_REL) - reladdr = dyn->d_un.d_ptr; - if (dyn->d_tag == DT_RELSZ) - relsz = dyn->d_un.d_val; - if (dyn->d_tag == DT_JMPREL) - pltreladdr = dyn->d_un.d_ptr; - if (dyn->d_tag == DT_PLTRELSZ) - pltrelsz = dyn->d_un.d_val; - /* Check that addresses for entries are in loaded segments. */ switch (dyn->d_tag) { |