aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@linux-m68k.org>2011-09-13 19:07:33 +0200
committerAndreas Schwab <schwab@linux-m68k.org>2011-09-13 20:01:15 +0200
commit1ae12c758f8e40ed16320fea4c928974d2274474 (patch)
tree803eebe5532ac8e188ee3738e4611a25052b890c
parente529793b508f47b5fb3a0a8bf5a1465a93a51dcd (diff)
downloadglibc-1ae12c758f8e40ed16320fea4c928974d2274474.zip
glibc-1ae12c758f8e40ed16320fea4c928974d2274474.tar.gz
glibc-1ae12c758f8e40ed16320fea4c928974d2274474.tar.bz2
Fix undefined symbol in powerpc64 dl-machine.h
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/powerpc/powerpc64/dl-machine.h2
2 files changed, 5 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 7eb623c..c004edf 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-09-13 Andreas Schwab <schwab@linux-m68k.org>
+
+ * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela):
+ Always define `refsym'.
+
2011-09-13 Andreas Schwab <schwab@redhat.com>
* misc/sys/select.h (__FD_MASK): Renamed from __FDMASK.
diff --git a/sysdeps/powerpc/powerpc64/dl-machine.h b/sysdeps/powerpc/powerpc64/dl-machine.h
index 2defc44..ab90d1e 100644
--- a/sysdeps/powerpc/powerpc64/dl-machine.h
+++ b/sysdeps/powerpc/powerpc64/dl-machine.h
@@ -560,9 +560,7 @@ elf_machine_rela (struct link_map *map,
{
Elf64_Addr *const reloc_addr = reloc_addr_arg;
const int r_type = ELF64_R_TYPE (reloc->r_info);
-#ifndef RTLD_BOOTSTRAP
const Elf64_Sym *const refsym = sym;
-#endif
if (r_type == R_PPC64_RELATIVE)
{