From: Ulrich Drepper Date: Tue, 19 Jun 2001 00:42:10 +0000 (+0000) Subject: (elf_machine_rela): handle relocs at unaligned address. X-Git-Tag: upstream/2.30~10627^2~1864 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=69ab1cbb296811726bf82af3339a699d10650bc9;p=external%2Fglibc.git (elf_machine_rela): handle relocs at unaligned address. --- diff --git a/sysdeps/hppa/dl-machine.h b/sysdeps/hppa/dl-machine.h index 4616334..f0c1b13 100644 --- a/sysdeps/hppa/dl-machine.h +++ b/sysdeps/hppa/dl-machine.h @@ -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: