(elf_machine_rela): handle relocs at unaligned address.

This commit is contained in:
Ulrich Drepper 2001-06-19 00:42:10 +00:00
parent f702391cdd
commit 69ab1cbb29
1 changed files with 10 additions and 1 deletions

View File

@ -530,7 +530,16 @@ elf_machine_rela (struct link_map *map, const Elf32_Rela *reloc,
if (map == &_dl_rtld_map)
return;
#endif
/* Otherwise, nothing more to do here. */
/* .eh_frame can have unaligned relocs. */
if (reloc_addr & 3)
{
char *rel_addr = (char *) reloc_addr;
rel_addr[0] = value >> 24;
rel_addr[1] = value >> 16;
rel_addr[2] = value >> 8;
rel_addr[3] = value;
return;
}
break;
case R_PARISC_PLABEL32: