about summary refs log tree commit diff
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-01-25 10:43:00 +0000
committerUlrich Drepper <drepper@redhat.com>2005-01-25 10:43:00 +0000
commitd026cf5feac7dda4daeb2a974315de8032c0c59e (patch)
tree7855047733755062c138cca552ae0cc7366704db
parent790aa1f272f22c2a4912d2e776bc6e2f38474633 (diff)
downloadglibc-d026cf5feac7dda4daeb2a974315de8032c0c59e.tar.gz
glibc-d026cf5feac7dda4daeb2a974315de8032c0c59e.tar.xz
glibc-d026cf5feac7dda4daeb2a974315de8032c0c59e.zip
Update.
2005-01-25  Alan Modra  <amodra@bigpond.net.au>

	* ysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Test
	sym_map, not sym, against zero.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/powerpc/powerpc32/dl-machine.h2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 31b682d1e8..e50fb25590 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2005-01-25  Alan Modra  <amodra@bigpond.net.au>
+
+	* ysdeps/powerpc/powerpc32/dl-machine.h (elf_machine_rela): Test
+	sym_map, not sym, against zero.
+
 2005-01-24  Ulrich Drepper  <drepper@redhat.com>
 
 	* misc/syslog.c: Moved to...
diff --git a/sysdeps/powerpc/powerpc32/dl-machine.h b/sysdeps/powerpc/powerpc32/dl-machine.h
index 8f20518117..de3b9e923a 100644
--- a/sysdeps/powerpc/powerpc32/dl-machine.h
+++ b/sysdeps/powerpc/powerpc32/dl-machine.h
@@ -233,7 +233,7 @@ elf_machine_rela (struct link_map *map, const Elf32_Rela *reloc,
   else
     {
       sym_map = RESOLVE_MAP (&sym, version, r_type);
-      value = sym == NULL ? 0 : sym_map->l_addr + sym->st_value;
+      value = sym_map == NULL ? 0 : sym_map->l_addr + sym->st_value;
     }
   value += reloc->r_addend;
 #else