View Issue Details

IDProjectCategoryView StatusLast Update
0009429FPCCompilerpublic2011-12-11 17:33
ReporterBogdan BarbuAssigned To 
Status acknowledgedResolutionopen 
Product Version2.3.1Product Build 
Target VersionFixed in Version 
Summary0009429: DOS stub under Win32
DescriptionThe linker should accept a command line parameter that would let the programmer specify his own DOS stub under the Win32 platform from another object file. Also, a $STUB compiler directive with this effect could be added.
TagsNo tags attached.
Fixed in Revision
Attached Files


Peter Vreman

2007-08-13 08:50

administrator   ~0014121

Please provide arguments why this is necessary to support. And is it also supported by other linkers (ie. Delphi linker)? If not then it is better to create a post-processor to replace the stub.

Bogdan Barbu

2007-08-13 20:05

reporter   ~0014141

I'm not sure if the Delphi linker supports this, I'll have to check. However, several other linkers support this, including Microsoft's and MASM32's.

Bogdan Barbu

2007-09-08 21:40

reporter   ~0014575

Apparently TP's TASM accepts changing the stub. This can also be done with bpc.exe by replacing the file called "winstub.exe" which is the default DOS stub. I don't really have Delphi but I'm sure older versions at least must accept this.

Peter Vreman

2007-09-09 16:28

administrator   ~0014579

This feature has low priority so don't expect anything soon. Ofcourse a patch that adds support is welcome.

Marco van de Voort

2007-09-22 12:27

manager   ~0014842

Note that I still haven't seen a reason why this is needed. Only tha that MS supports it.

Jonas Maebe

2007-09-22 23:31

manager   ~0014853

Examples could be that you want to provide a localized version of the error message, or possibly even that you want to include an entire Dos version of the Windows application as 'stub'.

Marco van de Voort

2011-12-11 17:33

manager   ~0054950

Another purpose: loading a windows api emulating dos extender when run as dos.

This makes for console programs that run up the range from dos to 64-bit windows.

But of course the RTL's increasing dependence on unicode (which is bound to only increase in trunk), makes this a bit hard.

Issue History

Date Modified Username Field Change
2007-08-12 18:49 Bogdan Barbu New Issue
2007-08-13 08:50 Peter Vreman Note Added: 0014121
2007-08-13 20:05 Bogdan Barbu Note Added: 0014141
2007-09-08 21:40 Bogdan Barbu Note Added: 0014575
2007-09-09 16:28 Peter Vreman Note Added: 0014579
2007-09-09 16:28 Peter Vreman FPCOldBugId => 0
2007-09-09 16:28 Peter Vreman FPCTarget => -
2007-09-09 16:28 Peter Vreman Priority normal => low
2007-09-09 16:28 Peter Vreman Status new => acknowledged
2007-09-22 12:27 Marco van de Voort Note Added: 0014842
2007-09-22 23:31 Jonas Maebe Note Added: 0014853
2011-12-11 17:33 Marco van de Voort Note Added: 0054950