about summary refs log tree commit diff
path: root/sysdeps/hppa/dl-machine.h
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2001-06-19 00:43:55 +0000
committerUlrich Drepper <drepper@redhat.com>2001-06-19 00:43:55 +0000
commitd7d64cdb3d3f8f7b52e6df68fff7c745c6700c98 (patch)
treeebc3797584afd8829e3b7bc3873e2f9ae6bfb72e /sysdeps/hppa/dl-machine.h
parentc4be6664d5d76dfcde35b7398a42992865dfd4f0 (diff)
downloadglibc-d7d64cdb3d3f8f7b52e6df68fff7c745c6700c98.tar.gz
glibc-d7d64cdb3d3f8f7b52e6df68fff7c745c6700c98.tar.xz
glibc-d7d64cdb3d3f8f7b52e6df68fff7c745c6700c98.zip
Update.
2001-06-17  Alan Modra  <amodra@bigpond.net.au>

	* sysdeps/hppa/dl-machine.h (elf_machine_rela): handle relocs
	at unaligned address.
Diffstat (limited to 'sysdeps/hppa/dl-machine.h')
-rw-r--r--sysdeps/hppa/dl-machine.h11
1 files changed, 10 insertions, 1 deletions
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: