From 2216362439c416dafc58ddd7023eb7d324eb1960 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Wed, 18 Jun 2003 06:49:48 +0000 Subject: Update. 2003-06-17 Jakub Jelinek * sysdeps/powerpc/powerpc64/dl-machine.h (elf_machine_rela) : Don't segfault on undefined symbols. --- sysdeps/powerpc/powerpc64/dl-machine.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'sysdeps/powerpc/powerpc64') 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; -- cgit 1.4.1