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: ambrop7 at gmail dot com
Subject: [Bug ld/14718] ld crashes on ARMv5 due to unaligned memory access
Date: Sun, 14 Oct 2012 21:16:50 +0000


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



Ambroz Bizjak <ambrop7 at gmail dot com> changed:



           What    |Removed                     |Added

----------------------------------------------------------------------------

   Attachment #6687|0                           |1

        is obsolete|                            |



--- Comment #6 from Ambroz Bizjak <ambrop7 at gmail dot com> 2012-10-14 
21:16:50 UTC ---

Created attachment 6688

  --> http://sourceware.org/bugzilla/attachment.cgi?id=6688

non-hackish fix, fixed



oops, that was indeed casting pointers to size_t and back :)

This fixes it by working with offsets from the base of the malloc block.



I would be very careful with swapping because the size of the

arm_local_iplt_info* is unknown (could be 64-bit or anything). It would still

work, but just by accident, because we would allocate 2*num_syms of 32-bit

objects first, making sure the 64-bit pointers that follow are aligned. So I

strongly prefer the manual alignment approach; it's unlikely that a small

change in the code would break it.



-- 

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]