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.

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

Reply via email to