delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2000/08/09/10:28:45

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-ID: <002301c001c6$e95889a0$0100000a@TIMYX18EWDT6RQ>
From: "Tim Prince" <tprince AT computer DOT org>
To: "DJ Delorie" <dj AT delorie DOT com>
Cc: <cygwin AT sourceware DOT cygnus DOT com>
References: <000701c00154$7bfcce60$0100000a AT TIMYX18EWDT6RQ> <200008081629 DOT MAA26945 AT envy DOT delorie DOT com>
Subject: Re: linker mis-alignments for cygwin 1.1.3
Date: Tue, 8 Aug 2000 22:58:47 -0700
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 5.00.2919.5600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.5600

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 AT delorie DOT com>
To: <tprince AT computer DOT org>
Cc: <cygwin AT sourceware DOT cygnus DOT 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 AT sourceware DOT cygnus DOT com

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019