diff options
-rw-r--r-- | src/ChangeLog | 4 | ||||
-rw-r--r-- | src/elflint.c | 7 | ||||
-rw-r--r-- | src/ldgeneric.c | 4 |
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 { |