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.
This commit is contained in:
Ulrich Drepper 2005-01-25 10:43:00 +00:00
parent 790aa1f272
commit d026cf5fea
2 changed files with 6 additions and 1 deletions

View File

@ -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...

View File

@ -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