[fpc-pascal] Linux i386 libraries and PIC
    Ludo Brands 
    ludo.brands at free.fr
       
    Thu Jun  2 12:41:09 CEST 2011
    
    
  
> 
> 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 at 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
    
    
More information about the fpc-pascal
mailing list