aboutsummaryrefslogtreecommitdiff
path: root/bfd/archive64.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2010-04-19 08:46:48 +0000
committerNick Clifton <nickc@redhat.com>2010-04-19 08:46:48 +0000
commitc9736ba0eec1656e00358edcf0c0f44766f53f17 (patch)
treef23d56f9c009f64f43779fada4eeec77aab9052d /bfd/archive64.c
parent4d836c0979e67c98286635aacedee092b643ccbf (diff)
downloadfsf-binutils-gdb-c9736ba0eec1656e00358edcf0c0f44766f53f17.zip
fsf-binutils-gdb-c9736ba0eec1656e00358edcf0c0f44766f53f17.tar.gz
fsf-binutils-gdb-c9736ba0eec1656e00358edcf0c0f44766f53f17.tar.bz2
* archive64.c (bfd_elf64_archive_slurp_armap): Remove unused
arhdrpos variable. * elf64-x86-64.c (elf64_x86_64_relocate_section): Add unused attribute to warned variable. Remove unused val, type and type2 variables.
Diffstat (limited to 'bfd/archive64.c')
-rw-r--r--bfd/archive64.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/bfd/archive64.c b/bfd/archive64.c
index 0a1f6ed..067fbb9 100644
--- a/bfd/archive64.c
+++ b/bfd/archive64.c
@@ -1,6 +1,6 @@
/* MIPS-specific support for 64-bit ELF
- Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006, 2007
- Free Software Foundation, Inc.
+ Copyright 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005, 2006, 2007,
+ 2010 Free Software Foundation, Inc.
Ian Lance Taylor, Cygnus Support
Linker support added by Mark Mitchell, CodeSourcery, LLC.
<mark@codesourcery.com>
@@ -43,7 +43,6 @@ bfd_elf64_archive_slurp_armap (bfd *abfd)
{
struct artdata *ardata = bfd_ardata (abfd);
char nextname[17];
- file_ptr arhdrpos;
bfd_size_type i, parsed_size, nsymz, stringsize, carsym_size, ptrsize;
struct areltdata *mapdata;
bfd_byte int_buf[8];
@@ -55,7 +54,6 @@ bfd_elf64_archive_slurp_armap (bfd *abfd)
ardata->symdefs = NULL;
/* Get the name of the first element. */
- arhdrpos = bfd_tell (abfd);
i = bfd_bread (nextname, 16, abfd);
if (i == 0)
return TRUE;