DJGPP + HDPMI problem: unresolved symbols (Developers)
> > 1. gcc -c Hello.c -oHello.o
> > 2. ld -r -x -s -T ../../lib/djgpp.ld -oHello.bin -Map hello_.map
> > ../../lib/crt0hx.o Hello.o -lm -lc
> > 3. ..\..\BIN\ldfix Hello.bin
> > 4. \mingw\bin\ld -e start -o Hello.exe -Map Hello.map -pie Hello.bin
> > 5. ..\..\BIN\pestub -q -n -w -x Hello.exe ..\..\BIN\dpmist32.bin
> >
> > at step 4 I get the following errors:
>
> In step 4 I used a MS COFF linker. I'm pretty sure that the mingw LD can
> NOT be used as a replacement, but I forgot the reason why.
>
> IIRC I used MS link from the Win2k DDK to link the sample, but I just
> tried the one contained in VC EE 2005, and it works as well.
>
> The GCC version I used tells it is v4.1. Is this DPJGG v2.03 or v2.04?
Checked again with link.exe from WinDDK 2600.1106:
4. link Hello.bin /nologo /subsystem:console /entry:start /out:Hello.exe /fixed:no /map:Hello.map /FileAlign:0x200
Without work around:
Hello.bin : error LNK2001: unresolved external symbol ___djgpp_stack_top
Hello.bin : error LNK2001: unresolved external symbol ___djgpp_ds_alias
Hello.bin : error LNK2001: unresolved external symbol __crt0_startup_flags
Hello.exe : fatal error LNK1120: 3 unresolved externals
with workaround, linked ok, but SIGSEGV at running:
E:\localSVN\trunk\OEM_TO~1\DevTools>Hello.exe
Exiting due to signal SIGSEGV
General Protection Fault at eip=02992f25
eax=00000010 ebx=fffffffc ecx=00000018 edx=00000010 esi=00000018 edi=00000008
ebp=02abffa8 esp=02abff90 program=<**UNKNOWN**>
cs: sel=01af base=00000000 limit=7ffeffff
ds: sel=01b7 base=00000000 limit=7ffeffff
es: sel=01b7 base=00000000 limit=7ffeffff
fs: sel=0000
gs: sel=01ef base=00000000 limit=0010ffff
ss: sel=01b7 base=00000000 limit=7ffeffff
App stack: [00000000..38ebc033] Exceptn stack: [0299f3a0..0299d460]
Call frame traceback EIPs:
0x02992f25
Complete thread:
- DJGPP + HDPMI problem: unresolved symbols - shwonder, 23.01.2008, 17:10 (Developers)
- DJGPP + HDPMI problem: unresolved symbols - Japheth, 23.01.2008, 18:34
- DJGPP + HDPMI problem: unresolved symbols - shwonder, 23.01.2008, 18:49
- DJGPP + HDPMI problem: unresolved symbols - Japheth, 23.01.2008, 19:16
- DJGPP + HDPMI problem: unresolved symbols - shwonder, 23.01.2008, 19:21
- DJGPP + HDPMI problem: unresolved symbols - Japheth, 24.01.2008, 05:27
- DJGPP + HDPMI problem: unresolved symbols - shwonder, 23.01.2008, 19:21
- DJGPP + HDPMI problem: unresolved symbols - Japheth, 23.01.2008, 19:16
- DJGPP + HDPMI problem: unresolved symbols - shwonder, 23.01.2008, 18:49
- DJGPP trouble - DOS386, 24.01.2008, 01:34
- DJGPP trouble - Japheth, 24.01.2008, 06:15
- [de]BUGging - DOS386, 19.02.2008, 02:44
- DJGPP trouble - Rugxulo, 19.02.2008, 03:28
- DJGPP trouble - Japheth, 24.01.2008, 06:15
- DJGPP + HDPMI problem: unresolved symbols - Japheth, 23.01.2008, 18:34