|
From: Casper H. <ch...@us...> - 2002-04-29 22:13:43
|
man, 2002-04-29 kl. 16:41 skrev KJK::Hyperion: > - major flaw in our toolchain: GNU ld doesn't calculate the PE image > checksum, it just happily sets it to zero. Apparently no command line > switch controls this. NT refuses to load drivers with an incorrect checksum > (can't test the new Null driver because of this) Actually, I would call this a missing feature instead since the PE image checksum is optional. Anyways, a patch for binutils that provides PE image checksum is submitted to the binutils project. The patch is approved and applied to mainline CVS branch. This feature will be in the next MinGW, expected to be released soon. > - GNU ld appears to ignore --entry if --subsystem is posix: > > gcc -Wl,--base-file,base.tmp \ > -Wl,--entry,_DllMain@12 \ > -Wl,--file-alignment,0x20 -Wl,--section-alignment,0x20 > -Wl,--subsystem,posix:19.90 -mdll -Wl,--image-base,0x400000 \ > -o junk.tmp \ > misc/psxx.coff misc/psxx.coff misc/main.o misc/stubs.o > ../../../../dk/w32/lib/ntdll.a > > D:\devtools\mingw\bin\..\lib\gcc-lib\i386-mingw32\2.95.3-6\..\..\..\..\i386-mingw32\bin\ld.exe: > warning: cannot find entry symbol ___PosixProcessStartup; defaulting to 00400020 Possibly a bug in binutils. Submit a bugreport to the binutils project. For details see their website. |