NO

Author Topic: can i change the dos stub in exe created by polink?  (Read 4051 times)

DXL

  • Guest
can i change the dos stub in exe created by polink?
« 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"

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
can i change the dos stub in exe created by polink?
« Reply #1 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
/Pelle

Anonymous

  • Guest
thanks..
« Reply #2 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 :)

Anonymous

  • Guest
i m a blind idiot..sorry to ask stupid question....btw
« Reply #3 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?

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
can i change the dos stub in exe created by polink?
« Reply #4 on: November 27, 2004, 11:11:34 PM »
No, not at the moment.

Pelle
/Pelle