James Harris (es)
2013-02-16 10:16:21 UTC
I am getting the specific symbol __STK as an undefined reference when trying
to link a C function with some assembly. There is no C main() routine. The
app is to start in the assembly code, not the C code. I get the following
errors about a stack not being set up.
wlink file s6.obj, t6.obj
Error! E2028: __STK is an undefined reference
Error! E2028: _big_code_ is an undefined reference
Warning! W1014: stack segment not found
creating a DOS executable
file t6.obj(S:\PROJ\OS\LOAD\HDD\TEST\t6.c): undefined symbol __STK
Even if I add to the wlink command "opt stack=4096" I get the same errors.
This is all 16-bit code.
Anyone know of a 'standard' fix for this or can shed some insights on how
the labels should be defined so I can set them up myself?
James
to link a C function with some assembly. There is no C main() routine. The
app is to start in the assembly code, not the C code. I get the following
errors about a stack not being set up.
wlink file s6.obj, t6.obj
Error! E2028: __STK is an undefined reference
Error! E2028: _big_code_ is an undefined reference
Warning! W1014: stack segment not found
creating a DOS executable
file t6.obj(S:\PROJ\OS\LOAD\HDD\TEST\t6.c): undefined symbol __STK
Even if I add to the wlink command "opt stack=4096" I get the same errors.
This is all 16-bit code.
Anyone know of a 'standard' fix for this or can shed some insights on how
the labels should be defined so I can set them up myself?
James