bug-binutils
[Top][All Lists]
Advanced

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

[Bug gold/15070] gold crashes on ARMv5 due to unaligned memory access


From: ian at airs dot com
Subject: [Bug gold/15070] gold crashes on ARMv5 due to unaligned memory access
Date: Thu, 31 Jan 2013 05:35:12 +0000

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

--- Comment #3 from Ian Lance Taylor <ian at airs dot com> 2013-01-31 05:35:12 
UTC ---
Yes, in this case "naturally aligned" means aligned to the size from the ELF
class.  That's the alignment that matters to gold.  I'm fine with changing the
comment.

There are two kinds of alignment requirement in gold.  First, as you say, files
in archives can be misaligned when mmapped into memory.  Second, many
relocations must be aligned; in this case the required alignment depends on the
size of the relocation.

The elfcpp library requires that ELF data structures be aligned.

The patch in the original comment looks right to me.  It corresponds to the
code in is_elf_object.  The patch in comment #2 is not correct.

-- 
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]