|
From: KJK::Hyperion <no...@li...> - 2002-04-29 18:33:01
|
It's amazing how many bugs one can find in a single morning without even looking for them specifically (can I commit the fixes? or do you want to review them first?): - reactos/tools/helper.mk places TARGET_LFLAGS *before* default linker flags in the command lines for kernel-mode targets, so it isn't possible to override, for example, image and section alignment values (SOLVED: fixed the affected rules) - reactos/tools/helper.mk doesn't define the "nostrip" rule for static library targets (SOLVED: added a dummy rule, line marked with a FIXME comment) - the Null device driver (reactos/services/dd/null) has a couple of bugs in the entry point routine (SOLVED: bugs fixed. Null driver now also manages a "zero stream" device. Two at the price of one) - 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) - 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 |