diff options
author | Andreas Jaeger <aj@suse.de> | 2012-05-17 20:17:53 +0200 |
---|---|---|
committer | Andreas Jaeger <aj@suse.de> | 2012-05-17 20:17:53 +0200 |
commit | de7f5ce7c595f4741029f7e63429826f8e82b340 (patch) | |
tree | 938153911d3a516e2744b99c831d9501fe1c6ba5 /sysdeps/i386/dl-machine.h | |
parent | 286abc3dea5e43835a1a77a3a8128c8ac14ca12d (diff) | |
download | glibc-de7f5ce7c595f4741029f7e63429826f8e82b340.tar glibc-de7f5ce7c595f4741029f7e63429826f8e82b340.tar.gz glibc-de7f5ce7c595f4741029f7e63429826f8e82b340.tar.bz2 glibc-de7f5ce7c595f4741029f7e63429826f8e82b340.zip |
Fix warnings on Linux/i686
Fixes:
../sysdeps/i386/dl-machine.h:336:30: warning: unused variable ‘refsym’ [-Wunused-variable]
rtld.c:1435:3: warning: implicit declaration of function ‘_dl_discover_osversion’ [-Wimplicit-function-declaration]
Diffstat (limited to 'sysdeps/i386/dl-machine.h')
-rw-r--r-- | sysdeps/i386/dl-machine.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sysdeps/i386/dl-machine.h b/sysdeps/i386/dl-machine.h index e20a961f98..33847f0ffc 100644 --- a/sysdeps/i386/dl-machine.h +++ b/sysdeps/i386/dl-machine.h @@ -1,5 +1,5 @@ /* Machine-dependent ELF dynamic relocation inline functions. i386 version. - Copyright (C) 1995-2005, 2006, 2009, 2011 Free Software Foundation, Inc. + Copyright (C) 1995-2012 Free Software Foundation, Inc. This file is part of the GNU C Library. The GNU C Library is free software; you can redistribute it and/or @@ -333,7 +333,9 @@ elf_machine_rel (struct link_map *map, const Elf32_Rel *reloc, else # endif /* !RTLD_BOOTSTRAP and have no -z combreloc */ { +# ifndef RTLD_BOOTSTRAP const Elf32_Sym *const refsym = sym; +# endif struct link_map *sym_map = RESOLVE_MAP (&sym, version, r_type); Elf32_Addr value = sym_map == NULL ? 0 : sym_map->l_addr + sym->st_value; |