This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: mainline ld on mingw32/pe is broken, returns 1 without error.
- From: Alan Modra <amodra at bigpond dot net dot au>
- To: "Aaron W. LaFramboise" <aaron98wiridge9 at aaronwl dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Sun, 27 Jun 2004 13:36:40 +0930
- Subject: Re: mainline ld on mingw32/pe is broken, returns 1 without error.
- References: <40DE22EB.7080001@aaronwl.com>
On Sat, Jun 26, 2004 at 08:29:15PM -0500, Aaron W. LaFramboise wrote:
> ld -o hello.exe
> c:/aaronwl/cs/env/mingw-3.4.0-2.15-3.3/bin/../lib/gcc/i686-pc-mingw32/3.4.0/../../../crt2.o
> -Lc:/aaronwl/cs/env/mingw-3.4.0-2.15-3.3/bin/../lib/gcc/i686-pc-mingw32/3.4.0
> hello.o -lmingw32 -lgcc -lmsvcrt -lkernel32
>
> It prints absolutely no messages, but exits with code 1, and does not
> leave output files.
>
> How should I begin to debug this? Any ideas what change caused this?
There's a good chance this is due to my 2004-06-24 section sizing
change. Build binutils from source just before this change went in, and
see if ld is good. Assuming it is, compare hello.exe before and after
the patch. Any change is suspicious, apart from the silly timestamp in
pe files. objdump will let you look at section sizes..
--
Alan Modra
IBM OzLabs - Linux Technology Centre