Pelles C forum

Pelles C => General discussions => Topic started by: DXL on November 27, 2004, 06:44:02 PM

Title: can i change the dos stub in exe created by polink?
Post by: DXL on November 27, 2004, 06:44:02 PM
can polink change the dos stub for exe created?
i cannot see options for that

dos stub=the routine in asm, telling u when running in pure msdos: "hey its a windows program"
Title: can i change the dos stub in exe created by polink?
Post by: Pelle on November 27, 2004, 07:39:49 PM
Yes - use the /STUB linker option. If you are using the IDE, use the Macros tab (in Project options) to change the LINKFLAGS value (it's not a very common setting, so there is no field on the Linker tab).

Pelle
Title: thanks..
Post by: Anonymous on November 27, 2004, 08:05:37 PM
i was using polink version 2.80.0 i cannot see /stub option
i suppose its an option added lately :)
Title: i m a blind idiot..sorry to ask stupid question....btw
Post by: Anonymous on November 27, 2004, 08:19:50 PM
i have read better the polink options from the commandine menu
and i can see now the /stub option

is there a constant in pelles-c to hold the image base address?

i want to compile a C source code to make it the more  compact i can

i have used the rite options: /MERGE and the flag to optimise
now, i want to use the end of pe header to put constant strings there.
i can compute myself all adresses of these strings and put strings in
the dos stub,
but is there a way, to do that without to have to compute at hand
the addresses of all these strings?
Title: can i change the dos stub in exe created by polink?
Post by: Pelle on November 27, 2004, 11:11:34 PM
No, not at the moment.

Pelle