Red Hat Linux
Click URL instructions:
Right-click on ad, choose "Copy Link", then paste here →
(This may not be possible with some types of ads)
You seem to have CSS turned off.
Please don't fill out this field.
Briefly describe the problem (required):
Please provide the ad click URL, if possible:
Hi, I need a minimal, relocatable exe file, use as plugin.
(WinAPI calls, without std functions, my program load, relocate and call
.def ___main; .scl 2; .type 32; .endef
.def _ExitProcess@...; .scl 2; .type 32; .endef
.def _main; .scl 2; .type 32; .endef
MessageBox (NULL, "hello world", "", MB_OK);
as start.s -o start.o
gcc -c -mno-stack-arg-probe test.c box.c
ld -o test.exe -nostdlib --emit-relocs --disable-runtime-pseudo-reloc
start.o test.o box.o %lib%\libkernel32.a %lib%\libuser32.a
(Win XP, MinGW: AS 2.13.90, GCC 3.2.3, LD 2.13.90)
ld: form test.exe .reloc section missing.
How can I disable runtime pseudo reloc? (whatever it is)
How can I disable link with _mainCRTStartup?
How can I link MY code? (without __file_alignment__,
Sign up for the SourceForge newsletter: