> 
> In systutils, most are push imm32 DefaultFormatSettings 
> (sysstr.inc). DefaultFormatSettings is defined in sysinth.inc 
> where it's declaration is followed by Formatsettings : 
> TFormatSettings absolute DefaultFormatSettings; . Is the 
> absolute directive known to cause PIC problems?
> 

Absolute isn't the cause. Looking at the assembler code created by fpc I
figured out that when DefaultFormatSettings is passed to a routine as a
register it is correctly loaded in a register as
TC_SYSUTILS_DEFAULTFORMATSETTINGS@GOT(%EBX) while when it is pushed on the
stack because of too many params it is pushed as
$TC_SYSUTILS_DEFAULTFORMATSETTINGS which is wrong. 

I'll create a bug report.

Ludo

_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal

Reply via email to