From d7d64cdb3d3f8f7b52e6df68fff7c745c6700c98 Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Tue, 19 Jun 2001 00:43:55 +0000 Subject: Update. 2001-06-17 Alan Modra * sysdeps/hppa/dl-machine.h (elf_machine_rela): handle relocs at unaligned address. --- sysdeps/hppa/dl-machine.h | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'sysdeps') diff --git a/sysdeps/hppa/dl-machine.h b/sysdeps/hppa/dl-machine.h index 46163345fa..f0c1b13ef4 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: -- cgit 1.4.1