aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-06-18 06:49:48 +0000
committerUlrich Drepper <drepper@redhat.com>2003-06-18 06:49:48 +0000
commit2216362439c416dafc58ddd7023eb7d324eb1960 (patch)
tree08d99762ce6dfb345677529e002a4e3c3c6a3672
parentaebcf54cb0fe3d7e7237be9a4b2e79ca0fadfbf4 (diff)
downloadglibc-2216362439c416dafc58ddd7023eb7d324eb1960.tar
glibc-2216362439c416dafc58ddd7023eb7d324eb1960.tar.gz
glibc-2216362439c416dafc58ddd7023eb7d324eb1960.tar.bz2
glibc-2216362439c416dafc58ddd7023eb7d324eb1960.zip
Update.
2003-06-17 Jakub Jelinek <jakub@redhat.com> * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela) <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/powerpc/powerpc64/dl-machine.h3
2 files changed, 7 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index a118e6ed7c..8b0f1a4515 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-06-17 Jakub Jelinek <jakub@redhat.com>
+
+ * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela)
+ <case R_PPC64_DTPREL64>: Don't segfault on undefined symbols.
+
2003-06-17 Paul Mackerras <paulus@samba.org>
* sysdeps/unix/sysv/linux/powerpc/powerpc32/getcontext.S: New file.
diff --git a/sysdeps/powerpc/powerpc64/dl-machine.h b/sysdeps/powerpc/powerpc64/dl-machine.h
index 1336e0d309..7f0353f687 100644
--- a/sysdeps/powerpc/powerpc64/dl-machine.h
+++ b/sysdeps/powerpc/powerpc64/dl-machine.h
@@ -653,7 +653,8 @@ elf_machine_rela (struct link_map *map,
/* During relocation all TLS symbols are defined and used.
Therefore the offset is already correct. */
# ifndef RTLD_BOOTSTRAP
- *reloc_addr = TLS_DTPREL_VALUE (sym, reloc);
+ if (sym_map != NULL)
+ *reloc_addr = TLS_DTPREL_VALUE (sym, reloc);
# endif
return;