]> git.ipfire.org Git - thirdparty/elfutils.git/commitdiff
elflint: Remove unused variables.
authorRoland McGrath <roland@redhat.com>
Wed, 9 Feb 2011 03:46:50 +0000 (19:46 -0800)
committerRoland McGrath <roland@redhat.com>
Wed, 9 Feb 2011 03:46:50 +0000 (19:46 -0800)
src/ChangeLog
src/elflint.c

index 9ecfe5d89b2c4484a8e6d43298f2afc763953d65..c202fd3f256b59902d2e3ae56ef63372e2a11c23 100644 (file)
@@ -1,5 +1,7 @@
 2011-02-08  Roland McGrath  <roland@redhat.com>
 
+       * elflint.c (check_dynamic): Remove unused variables.
+
        * elflint.c (check_symtab): Warn about missing xndx section only once.
 
        * ldgeneric.c (check_for_duplicate2): Remove unused variable.
index 152b23a8ce06e51af73a3bee3edac946c7cd4d21..c122735532a5e30631dea18e47dd2b3e5d94a976 100644 (file)
@@ -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)
        {