Free Pascal questions (Developers)
> > > But then that's a bug in FPC's documentation! Chart.pdf shows "XX =
> > > $SMARTLINK = Use smartlinking."
> >
> > Well, the problem is that they both are. The compiler-linker separation
> > needs two switches instead of one though.
>
> I see. But why does FPC's documentation state that command-line option
> "-XX" equals to source code directive "$SMARTLINK". (That's how I
> understand it.) If I put "$SMARTLINK" to my program resulting EXE is
> not smartlinked! It gets only smartlinked, if I specify "-XX" on
> command line.
I don't get that from the docs:
http://www.freepascal.org/docs-html/prog/progsu102.html#x110-1100001.2.26
first line:
"A unit that is compiled in the {$SMARTLINK ON} state will be compiled in such a way that it can be used for smartlinking."
> Can you tell me what part in FP writes the go32stub to an EXE file? Or is
> it LD.EXE? I found "go32v2stub" in "ogcoff.pas", but when I write this
> constant to a temporary file, it still differs from the stub of UPXDUMP.
As far as I can see when linking wiht -s, and objdumping the .o of the mainprogram, I'd say FPC has nothing to do with it.
That routine looks like the coff assembler. IOW, it could be that the header is the header for each .o ?
> Apropos: I can't unpack LD.EXE (or other binaries you borrow from DJGPP),
> because FP still uses the DJGPP 2.03-current chain, where Binutils were
> compressed by a "crazy" UPX build. (Blame Gordon Schumacher of Seagate.
> ) Juan Manuel Guerrero later released new binaries (no compression)for
> the 2.04-beta chain. Better to switch over, I think.
Depends. For such a change, some testing needs to be done by people that actually understand dos/dpmi issues. I don't. Filing a bug about it can help avoid it being forgotten, and act as a kind of forum to discuss it and exchange epxeriences
Complete thread:
- Free Pascal questions - rr, 24.08.2008, 23:31 (Developers)
- Free Pascal questions - marcov, 25.08.2008, 10:28
- Free Pascal questions - Laaca, 25.08.2008, 11:02
- Free Pascal questions - marcov, 25.08.2008, 11:22
- CHM - DOS386, 28.08.2008, 05:48
- Free Pascal questions - marcov, 12.10.2008, 13:46
- Free Pascal questions | 2.2.2 minimal test - DOS386, 18.10.2008, 03:13
- Free Pascal questions | 2.2.2 minimal test - Laaca, 18.10.2008, 12:10
- Free Pascal questions | 2.2.2 minimal test - DOS386, 19.10.2008, 01:29
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - DOS386, 20.10.2008, 08:49
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - DOS386, 20.10.2008, 09:01
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - Laaca, 20.10.2008, 11:00
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - marcov, 20.10.2008, 18:09
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - marcov, 21.10.2008, 12:17
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - DOS386, 22.10.2008, 15:22
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - rr, 22.10.2008, 15:59
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - marcov, 22.10.2008, 19:26
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - DOS386, 25.10.2008, 01:31
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - ecm, 25.10.2008, 10:33
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - Laaca, 25.10.2008, 12:13
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - marcov, 25.10.2008, 20:17
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - Laaca, 25.10.2008, 23:49
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - marcov, 26.10.2008, 11:43
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - Laaca, 28.10.2008, 10:01
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - marcov, 29.10.2008, 15:40
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - Laaca, 28.10.2008, 10:01
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - marcov, 26.10.2008, 11:43
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - Laaca, 25.10.2008, 23:49
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - marcov, 25.10.2008, 20:17
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - Laaca, 25.10.2008, 12:13
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - ecm, 25.10.2008, 10:33
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - DOS386, 25.10.2008, 01:31
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - DOS386, 22.10.2008, 15:22
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - Laaca, 20.10.2008, 11:00
- Free Pascal questions | 2.2.2 test | FP IDE test @marcov - DOS386, 20.10.2008, 09:01
- Free Pascal questions | 2.2.2 minimal test - Laaca, 18.10.2008, 12:10
- Free Pascal questions | 2.2.2 minimal test - DOS386, 18.10.2008, 03:13
- Free Pascal questions - rr, 25.08.2008, 22:07
- Free Pascal questions - marcov, 26.08.2008, 11:14
- Free Pascal questions - rr, 27.08.2008, 12:47
- Free Pascal questions - marcov, 28.08.2008, 00:17
- Free Pascal questions - Rugxulo, 28.08.2008, 04:30
- Free Pascal questions - rr, 28.08.2008, 09:50
- Free Pascal questions - rr, 28.08.2008, 09:54
- Free Pascal questions - Rugxulo, 28.08.2008, 11:00
- Free Pascal questions - rr, 28.08.2008, 13:08
- Free Pascal questions - Rugxulo, 28.08.2008, 11:00
- Free Pascal questions - Rugxulo, 28.08.2008, 04:30
- Free Pascal questions - marcov, 28.08.2008, 00:17
- Free Pascal questions - rr, 27.08.2008, 12:47
- Free Pascal questions - marcov, 26.08.2008, 11:14
- Free Pascal questions - Laaca, 25.08.2008, 11:02
- Free Pascal questions - marcov, 25.08.2008, 10:28