X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f Date: Sat, 20 Nov 2004 13:03:56 +0200 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp-workers AT delorie DOT com Message-ID: <01c4cef0$Blat.v2.2.2$c9cf5ea0@zahav.net.il> Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=ISO-8859-1 X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 2.2.2 In-reply-to: <01c4cb97$Blat.v2.2.2$3bf48f80@zahav.net.il> (eliz@gnu.org) Subject: Re: Alignment problem on Windows XP References: <10411160406 DOT AA85585 AT clio DOT rice DOT edu> <01c4cb97$Blat.v2.2.2$3bf48f80 AT zahav DOT net DOT il> Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > Date: Tue, 16 Nov 2004 06:45:25 +0200 > From: "Eli Zaretskii" > > > From: sandmann AT clio DOT rice DOT edu (Charles Sandmann) > > Date: Mon, 15 Nov 2004 22:06:45 -0600 (CST) > > > > I'm using 2.953 and binutil 2.11.2 - no problems here except compile warnings: > > > > May be related to the GCC compiler and linker used? > > Compiler--no, as I tried with 2.95.x as well. > > Linker--maybe; didn't try with 2.11 yet. Will try later. Tried that: no cigar. With ld and gas from Binutils 2.11.2, I still get unaligned data with the latest libc.a. Note that I only used libc.a, but didn't replace my crt0.o with the one that comes with the latest libc.a -- could that be the reason? Anyway, I don't understand how replacing libc.a alone could change the alignment. Can someone suggest where to look for the possible explanations? Also note that these warnings from the compiler: abug.c:14: warning: alignment of `ss1' is greater than maximum object file alignment. Using 4. abug.c:15: warning: alignment of `ss2' is greater than maximum object file alignment. Using 4. abug.c:16: warning: alignment of `ss3' is greater than maximum object file alignment. Using 4. abug.c:17: warning: alignment of `ss4' is greater than maximum object file alignment. Using 4. actually mean that you shouldn't expect the variables to be aligned, as GCC tells you that it doesn't support more than 4-byte alignment. So it's not a harmless warning.