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.

_______________________________________________
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to