Back to home page

DOS ain't dead

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Free Pascal questions (Developers)

posted by rr Homepage E-mail, Berlin, Germany, 27.08.2008, 12:47

> > 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.

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.

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. :-D) Juan Manuel Guerrero later released new binaries (no compression)for the 2.04-beta chain. Better to switch over, I think.

---
Forum admin

 

Complete thread:

Back to the forum
Board view  Mix view
22049 Postings in 2034 Threads, 396 registered users, 296 users online (1 registered, 295 guests)
DOS ain't dead | Admin contact
RSS Feed
powered by my little forum