[fpc-devel] fpc libraries do not work in freeBSD...

Tomas Hajny XHajT03 at hajny.biz
Wed Aug 6 13:50:26 CEST 2014


On Wed, August 6, 2014 12:16, Fred van Stappen wrote:
>
> Yep, Many thanks to take care Tomas.
>
>> I assume that you should have changed dllprt0.as rather than prt0.as?
>
> Yes, of course (sorry for bad copy).

I'd suggest checking if the file you have changed (dllprt0.o) is really
the one used during linking. For that purpose, compile your library with
parameter '-s' (avoid linking) and carefully check the created script.res
file to make sure that either dllprt0.o is listed with a full path and the
full path specification corresponds to the modified file (and no other
reference to dllprt0.o appears in the linker script), or none of the
search directories listed in the produced linker script contains an older
version of dllprt0.o if dllprt0.o is listed in the linker script without
path.

 .
 .
> Hum, maybe totally stupid, but if uncomment each line ( remove first "."
> (dot)) ?
>
> Change dllprt0.as with that :
> global operatingsystem_parameter_envp
> global operatingsystem_parameter_argc
> global operatingsystem_parameter_argv
> set operatingsystem_parameter_envp,operatingsystem_parameters+0
> set operatingsystem_parameter_argc,operatingsystem_parameters+8
> set operatingsystem_parameter_argv,operatingsystem_parameters+16

Nope - the dot is not a comment but rather a sign of an assembler
directive (as opposed to assembler instructions directly translated to CPU
opcodes).

Tomas





More information about the fpc-devel mailing list