summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@redhat.com>2011-02-08 19:45:12 -0800
committerRoland McGrath <roland@redhat.com>2011-02-08 19:45:12 -0800
commitfd992543185126eb0280c1ee0883e073020499b4 (patch)
tree6b5394fc192d88a3428a5b7a87d5c1cf04ccaf25
parent8a7b623aaf90d8654e9f57f9a4ac8f983a95cbb8 (diff)
downloadelfutils-fd992543185126eb0280c1ee0883e073020499b4.tar.gz
ld: Remove an unused variable.
-rw-r--r--src/ChangeLog4
-rw-r--r--src/elflint.c7
-rw-r--r--src/ldgeneric.c4
3 files changed, 9 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 8b74ca6d..94d6acad 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,7 @@
+2011-02-08 Roland McGrath <roland@redhat.com>
+
+ * ldgeneric.c (check_for_duplicate2): Remove unused variable.
+
2011-01-06 Roland McGrath <roland@redhat.com>
* strip.c (handle_elf): Under --strip-sections, remove all
diff --git a/src/elflint.c b/src/elflint.c
index afe8bee6..152b23a8 100644
--- a/src/elflint.c
+++ b/src/elflint.c
@@ -1,5 +1,5 @@
/* Pedantic checking of ELF files compliance with gABI/psABI spec.
- Copyright (C) 2001-2010 Red Hat, Inc.
+ Copyright (C) 2001-2011 Red Hat, Inc.
This file is part of Red Hat elfutils.
Written by Ulrich Drepper <drepper@redhat.com>, 2001.
@@ -697,9 +697,10 @@ section [%2d] '%s': symbol %zu: invalid name value\n"),
{
if (xndxdata == NULL)
{
- ERROR (gettext ("\
+ if (!no_xndx_warned)
+ ERROR (gettext ("\
section [%2d] '%s': symbol %zu: too large section index but no extended section index section\n"),
- idx, section_name (ebl, idx), cnt);
+ idx, section_name (ebl, idx), cnt);
no_xndx_warned = true;
}
else if (xndx < SHN_LORESERVE)
diff --git a/src/ldgeneric.c b/src/ldgeneric.c
index b2ea2f90..d51b54fe 100644
--- a/src/ldgeneric.c
+++ b/src/ldgeneric.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2008, 2009 Red Hat, Inc.
+/* Copyright (C) 2001-2011 Red Hat, Inc.
This file is part of Red Hat elfutils.
Written by Ulrich Drepper <drepper@redhat.com>, 2001.
@@ -285,12 +285,10 @@ static int
check_for_duplicate2 (struct usedfiles *newp, struct usedfiles *list)
{
struct usedfiles *first;
- struct usedfiles *prevp;
if (list == NULL)
return 0;
- prevp = list;
list = first = list->next;
do
{