aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMontaVista Software, Inc <support@mvista.com>2010-06-10 14:30:33 -0500
committerMark Hatle <mark.hatle@windriver.com>2010-07-22 15:37:26 -0500
commit0629c243f9b95750ad3e03a61e9f7898827fc420 (patch)
tree9c90fe1135aef31c54023d74d38c1abaf4fba028
parent6ce74c7881f1680eba7be1b9858a0b410c8f5d6d (diff)
downloadprelink-cross-0629c243f9b95750ad3e03a61e9f7898827fc420.tar.gz
prelink-cross-0629c243f9b95750ad3e03a61e9f7898827fc420.tar.bz2
prelink-cross-0629c243f9b95750ad3e03a61e9f7898827fc420.zip
Import from: prelink-arch-sh.patch
Source: MontaVista Software, Inc. Update SH architecture definitions to fix a few misc problems Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
-rw-r--r--ChangeLog.cross5
-rw-r--r--src/arch-sh.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog.cross b/ChangeLog.cross
new file mode 100644
index 0000000..54787a0
--- /dev/null
+++ b/ChangeLog.cross
@@ -0,0 +1,5 @@
+2006-06-10 MontaVista Software, Inc.
+
+ * arch-sh.c: Fix R_SH_RELATIVE endian swap problem,
+ change max page size
+
diff --git a/src/arch-sh.c b/src/arch-sh.c
index 8701733..2b3ffb7 100644
--- a/src/arch-sh.c
+++ b/src/arch-sh.c
@@ -373,7 +373,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);
@@ -465,6 +465,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
};