www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2004/11/15/23:05:44

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: <10411160406.AA85585@clio.rice.edu>
Subject: Re: Alignment problem on Windows XP
To: djgpp-workers AT delorie DOT com
Date: Mon, 15 Nov 2004 22:06:45 -0600 (CST)
In-Reply-To: <01c4ca9c$Blat.v2.2.2$15f80060@zahav.net.il> from "Eli Zaretskii" at Nov 15, 2004 12:47:37 AM
X-Mailer: ELM [version 2.5 PL2]
Mime-Version: 1.0
X-Virus-Scanned: by amavis-20030616-p6 at mail.rice.edu
X-DCC--Metrics: handler2.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

> Got the binary from him, and sure enough, it prints 4 on Windows 98 as
> well.
> 
> After doing some experimentation, I found that if I link the program
> with libc.a from djdev203.zip that is on ftp.delorie.com, I get
> unaligned addresses as well.  My usual libc.a is the one from the
> original djdev203.zip, the one built on Jan 4 2000, with a few patches
> applied manually over the years, but none of the W2K-related ones.

> Can someone see if they can reproduce this problem with the latest
> libc.a we have on ftp.delorie.com?  (Note that I only used libc.a from
> there, but not the headers or the stub or the linker script.)

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?

Reading specs from c:/djgpp/lib/gcc-lib/djgpp/2.953/specs
gcc version 2.95.3 20010315/djgpp (release)
 c:/djgpp/lib/gcc-lib/djgpp/2.953/cpp0.exe -lang-c -v -D__GNUC__=2 -D__GNUC_MINOR__=95 -Dunix -Di386 -DGO32 -DDJGPP=2 -DMSDOS -D__unix__ -D__i386__ -D__GO32__ -D__DJGPP__=2 -D__MSDOS__ -D__unix -D__i386 -D__GO32 -D__DJGPP=2 -D__MSDOS -Asystem(unix) -Asystem(msdos) -Acpu(i386) -Amachine(i386) -D__OPTIMIZE__ -Acpu(i386) -Amachine(i386) -Di386 -D__i386 -D__i386__ -D__tune_pentium__ -imacros c:/djgpp/lib/djgpp.ver -remap abug.c c:/djgpp/tmp\cccCg3de.i
GNU CPP version 2.95.3 20010315/djgpp (release) (80386, BSD syntax)
#include "..." search starts here:
#include <...> search starts here:
 c:/djgpp/lib/gcc-lib/djgpp/2.953/include
 c:/djgpp/include
End of search list.
The following default directories have been omitted from the search path:
 $DJDIR/lang/cxx
 $DJDIR/lib/gcc-lib/djgpp/2.953/../../../../djgpp/include
End of omitted list.
 c:/djgpp/lib/gcc-lib/djgpp/2.953/cc1.exe c:/djgpp/tmp\cccCg3de.i -quiet -dumpbase abug.c -O2 -version -o c:/djgpp/tmp\ccqgkpK2.s
GNU C version 2.95.3 20010315/djgpp (release) (djgpp) compiled by GNU C version 2.95.3 20010315/djgpp (release).
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.
 c:/djgpp/bin/as.exe -o c:/djgpp/tmp\ccEshjG4.o c:/djgpp/tmp\ccqgkpK2.s
 c:/djgpp/lib/gcc-lib/djgpp/2.953/collect2.exe -o abug.exe c:/djgpp/lib/crt0.o -Lc:/djgpp/lib -Lc:/djgpp/lib/gcc-lib/djgpp/2.953 -Lc:/djgpp/bin -Lc:/djgpp/lib c:/djgpp/tmp\ccEshjG4.o -lgcc -lc -lgcc -Tdjgpp.djl
 c:/djgpp/bin/stubify.exe -v abug.exe

ss1: rem 0
ss2: rem 0
ss3: rem 0
ss4: rem 0

- Raw text -


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