(elf_machine_rela): handle relocs at unaligned address.
authordrepper <drepper>
Tue, 19 Jun 2001 00:42:10 +0000 (00:42 +0000)
committerdrepper <drepper>
Tue, 19 Jun 2001 00:42:10 +0000 (00:42 +0000)
sysdeps/hppa/dl-machine.h

index 4616334..f0c1b13 100644 (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: