aboutsummaryrefslogtreecommitdiff
path: root/sysdeps
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 /sysdeps
parentaebcf54cb0fe3d7e7237be9a4b2e79ca0fadfbf4 (diff)
downloadglibc-2216362439c416dafc58ddd7023eb7d324eb1960.zip
glibc-2216362439c416dafc58ddd7023eb7d324eb1960.tar.gz
glibc-2216362439c416dafc58ddd7023eb7d324eb1960.tar.bz2
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.
Diffstat (limited to 'sysdeps')
-rw-r--r--sysdeps/powerpc/powerpc64/dl-machine.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sysdeps/powerpc/powerpc64/dl-machine.h b/sysdeps/powerpc/powerpc64/dl-machine.h
index 1336e0d..7f0353f 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;