Hello, I am trying to compile a simple little dll that doesn't do
anything at the moment, I do not wish to link against the crt for this
particular project. My code consists of this:
int __dllstart(void *base, unsigned long reason, void *reserved)
{
return 1;
}
When attempting to compile with:
tcc -Wall -shared -nostdlib prog.c
It's giving me a address@hidden not defined error, If I attempt to do
the non-dll way of things using _start, it works fine. I have also
tried naming it _dllstart and ___dllstart. I am pretty new to tcc, any
help would be much appreciated!
Thanks in advance.