X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f From: sandmann AT clio DOT rice DOT edu (Charles Sandmann) Message-Id: <10411201952.AA51993@clio.rice.edu> Subject: Re: Alignment problem on Windows XP To: djgpp-workers AT delorie DOT com Date: Sat, 20 Nov 2004 13:52:08 -0600 (CST) In-Reply-To: <01c4cef0$Blat.v2.2.2$c9cf5ea0@zahav.net.il> from "Eli Zaretskii" at Nov 20, 2004 01:03:56 PM X-Mailer: ELM [version 2.5 PL2] Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavis-20030616-p6 at mail.rice.edu X-DCC--Metrics: handler10.mail.rice.edu 1066; Body=1 Fuz1=1 Fuz2=1 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 > 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? It could be the crt0.o or the djgpp.djl - only way to know where the problem is would be to do a map and see where the alignment gets messed up. > Also note that these warnings from the compiler: > > abug.c:14: warning: alignment of `ss1' 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. At some point we changed from 2**N notation to N notation as what alignment meant. I don't know when that was.