This is the mail archive of the cygwin@sources.redhat.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: linker mis-alignments for cygwin 1.1.3


That's the key.  Setting that number to 4 causes linker to insert
padding to put everything on 64-bit alignments (I was hoping for 128).
Presumably 3 would do the same.  Absolutely required for good
performance with 64-bit data.

Tim Prince
----- Original Message -----
From: "DJ Delorie" <dj@delorie.com>
To: <tprince@computer.org>
Cc: <cygwin@sourceware.cygnus.com>
Sent: Tuesday, August 08, 2000 9:29 AM
Subject: Re: linker mis-alignments for cygwin 1.1.3


>
> > apparently all from libcygwin.a, which take a total of 12 bytes,
> > beginning at a properly aligned address, leaving all subsequent
modules
> > mis-aligned.
>
> Actually, such alignments are enforced by the assembler and linker.
> The linker is supposed to pad sections to keep each one aligned on a
> suitable boundary (src/bfd/coff-i386.c,
> COFF_DEFAULT_SECTION_ALIGNMENT_POWER, currently set to 2 (i.e. 4
> bytes)).
>
> The assembler is supposed to only produce sections that are padded to
> the right size alignment.
>



--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]