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, 28.08.2008, 09:54

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

I was talking about (broken) http://www.freepascal.org/docs-html/chart/chart.html (or Chart.pdf).

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

I found it in Binutils' "src/bfd/go32stub.h" now.

> That routine looks like the coff assembler. IOW, it could be that the
> header is the header for each .o ?

:confused:

> 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

DJGPP 2.04 is very stable and works much better with current hardware or on Windows.

---
Forum admin

 

Complete thread:

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