summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
authorBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-09-25 08:35:20 +0000
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2008-09-25 08:35:20 +0000
commit0cd1b049b974717a0fe39778e8fa5634eee33338 (patch)
tree42b0f81983be9c4e93ebdf3ba668532928557848 /ldso
parent937533acb7077c29dddf46065bbb6a5dcb71997c (diff)
- ARMV5 can use STRD and LDRD access instructions but these accesses need to be
8 byte aligned. The dynamic linker's malloc needs to match this so structures become 8 byte aligned to void unaligned accesses. (71_all_uClibc-arm_fix_alignment.patch from gentoo)
Diffstat (limited to 'ldso')
-rw-r--r--ldso/ldso/arm/dl-sysdep.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/ldso/ldso/arm/dl-sysdep.h b/ldso/ldso/arm/dl-sysdep.h
index 2f9a37f8f..c3fc4e538 100644
--- a/ldso/ldso/arm/dl-sysdep.h
+++ b/ldso/ldso/arm/dl-sysdep.h
@@ -140,3 +140,7 @@ elf_machine_relative (Elf32_Addr load_off, const Elf32_Addr rel_addr,
*reloc_addr += load_off;
} while (--relative_count);
}
+
+#ifdef __ARM_EABI__
+#define DL_MALLOC_ALIGN 8 /* EABI needs 8 byte alignment for STRD LDRD */
+#endif