diff options
Diffstat (limited to 'trunk/src/arch-sh.c')
-rw-r--r-- | trunk/src/arch-sh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/trunk/src/arch-sh.c b/trunk/src/arch-sh.c index 095ed58..1b11312 100644 --- a/trunk/src/arch-sh.c +++ b/trunk/src/arch-sh.c @@ -355,7 +355,7 @@ sh_undo_prelink_rela (DSO *dso, GElf_Rela *rela, GElf_Addr relaaddr) break; case R_SH_RELATIVE: if (rela->r_addend) - write_le32 (dso, rela->r_offset, 0); + write_ne32 (dso, rela->r_offset, 0); break; case R_SH_JMP_SLOT: sec = addr_to_sec (dso, rela->r_offset); @@ -413,7 +413,7 @@ sh_reloc_class (int reloc_type) } } -PL_ARCH = { +PL_ARCH(sh) = { .name = "SuperH", .class = ELFCLASS32, .machine = EM_SH, @@ -448,6 +448,6 @@ PL_ARCH = { even dlopened libraries will get the slots they desire. */ .mmap_base = 0x30000000, .mmap_end = 0x40000000, - .max_page_size = 0x2000, + .max_page_size = 0x10000, .page_size = 0x1000 }; |