summaryrefslogtreecommitdiffstats
path: root/src/elflint.c
diff options
context:
space:
mode:
authorRoland McGrath <[email protected]>2011-02-08 19:45:12 -0800
committerRoland McGrath <[email protected]>2011-02-08 19:45:12 -0800
commitfd992543185126eb0280c1ee0883e073020499b4 (patch)
tree6b5394fc192d88a3428a5b7a87d5c1cf04ccaf25 /src/elflint.c
parent8a7b623aaf90d8654e9f57f9a4ac8f983a95cbb8 (diff)
ld: Remove an unused variable.
Diffstat (limited to 'src/elflint.c')
-rw-r--r--src/elflint.c7
1 files changed, 4 insertions, 3 deletions
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 <[email protected]>, 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)