arrfab / rpms / glibc

Forked from rpms/glibc 5 years ago
Clone

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

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