Skip to content

Commit

Permalink
Temporarily enable R_*_NONE relocs in ld.so.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ulrich Drepper committed Oct 2, 2002
1 parent dc312cb commit b5bf92e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
9 changes: 4 additions & 5 deletions sysdeps/alpha/dl-machine.h
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ elf_machine_rela (struct link_map *map,
if (map != &GL(dl_rtld_map))
# endif
{
/* XXX Make some timings. Maybe it's preverable to test for
/* XXX Make some timings. Maybe it's preferable to test for
unaligned access and only do it the complex way if necessary. */
void *reloc_addr_1 = reloc_addr;
Elf64_Addr reloc_addr_val;
Expand All @@ -535,12 +535,11 @@ elf_machine_rela (struct link_map *map,
memcpy (reloc_addr_1, &reloc_addr_val, 8);
}
}
# ifndef RTLD_BOOTSTRAP
else if (__builtin_expect (r_type == R_ALPHA_NONE, 0))
return;
# endif
else
#endif
if (__builtin_expect (r_type == R_ALPHA_NONE, 0))
return;
else
{
Elf64_Addr loadbase, sym_value;

Expand Down
7 changes: 3 additions & 4 deletions sysdeps/ia64/dl-machine.h
Original file line number Diff line number Diff line change
Expand Up @@ -546,12 +546,11 @@ elf_machine_rela (struct link_map *map,
# endif
value += map->l_addr;
}
# ifndef RTLD_BOOTSTRAP
else if (r_type == R_IA64_NONE)
return;
# endif
else
#endif
if (__builtin_expect (r_type == R_IA64_NONE, 0))
return;
else
{
struct link_map *sym_map;

Expand Down

0 comments on commit b5bf92e

Please sign in to comment.