olga / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

Blame SOURCES/glibc-rh1505492-unused-5.patch

00db10
commit c5eebdd084b77b0b581a3aa02213fa7cc5851216
00db10
Author: Andreas Krebbel <krebbel@linux.vnet.ibm.com>
00db10
Date:   Tue Jan 7 09:40:00 2014 +0100
00db10
00db10
    S/390: Get rid of unused variable warning in dl-machine.h
00db10
00db10
diff --git a/sysdeps/s390/s390-32/dl-machine.h b/sysdeps/s390/s390-32/dl-machine.h
00db10
index febd99f8c6013f29..d2f57e6bbe13ec9d 100644
00db10
--- a/sysdeps/s390/s390-32/dl-machine.h
00db10
+++ b/sysdeps/s390/s390-32/dl-machine.h
00db10
@@ -354,7 +354,8 @@ elf_machine_rela (struct link_map *map, const Elf32_Rela *reloc,
00db10
     return;
00db10
   else
00db10
     {
00db10
-#ifndef RESOLVE_CONFLICT_FIND_MAP
00db10
+#if !defined RTLD_BOOTSTRAP && !defined RESOLVE_CONFLICT_FIND_MAP
00db10
+      /* Only needed for R_390_COPY below.  */
00db10
       const Elf32_Sym *const refsym = sym;
00db10
 #endif
00db10
       struct link_map *sym_map = RESOLVE_MAP (&sym, version, r_type);