bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug ld/14718] ld crashes on ARMv5 due to unaligned memory access


From: siarhei.siamashka at gmail dot com
Subject: [Bug ld/14718] ld crashes on ARMv5 due to unaligned memory access
Date: Sun, 14 Oct 2012 22:32:12 +0000


http://sourceware.org/bugzilla/show_bug.cgi?id=14718



--- Comment #7 from Siarhei Siamashka <siarhei.siamashka at gmail dot com> 
2012-10-14 22:32:12 UTC ---

(In reply to comment #5)

> Because in the current code bfd_signed_vma array (64-bit elements) is followed

> by arm_local_iplt_info * array (32-bit elements) and then followed by bfd_vma

> array (64-bit elements again). If num_syms is odd, then the last array is not

> 64-bit aligned. Just swapping the order of the second and third arrays might

> help.



Hmm, this is beginning to be really funny. My gentoo arm system has "#define

BFD_ARCH_SIZE 64" line in /usr/include/bfd.h, resulting in 64-bit vma typedefs.

I guess such weird configuration is a prerequisite for triggering this

alignment issue. The culprit is gentoo toolchain-binutils.eclass which is

forcing --enable-64-bit-bfd configure option. The architectures like ARM surely

have lots of spare RAM to waste... Looks like at least this part of the problem

needs to be solved on gentoo side.



-- 

Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email

------- You are receiving this mail because: -------

You are on the CC list for the bug.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]