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 marcov, 28.08.2008, 00:17

> > > 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.
> :-D) 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:

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