projects
/
external
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f702391
)
(elf_machine_rela): handle relocs at unaligned address.
author
Ulrich Drepper
<drepper@redhat.com>
Tue, 19 Jun 2001 00:42:10 +0000
(
00:42
+0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Tue, 19 Jun 2001 00:42:10 +0000
(
00:42
+0000)
sysdeps/hppa/dl-machine.h
patch
|
blob
|
history
diff --git
a/sysdeps/hppa/dl-machine.h
b/sysdeps/hppa/dl-machine.h
index
4616334
..
f0c1b13
100644
(file)
--- 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: