[fpc-devel].hidden PASCALMAIN

Sergey Korshunoff seyko at comail.ru
Mon Aug 26 06:17:48 CEST 2002

> >Sirs!
> >Please try to mark PASCALMAIN symbol in FPC generated *.o as hidden!
> >I think you can find more general way to do this then my
> >    if tai_symbol(hp).sym.name = 'PASCALMAIN' then
> >       AsmWriteLn('.hidden PASCALMAIN');
> >(in compiler/aggas.pas only).
> >
> >This marking is needed to allow link FPC made *.lib with
> >FPC main program.
> >
> >Because currently FPC 1.1 is heavely corrected in
> >code generation part there is good time to impement this
> >task too (as I think).
> Is removing the PASCALMAIN symbol from the library also 
> enough? Because 
> then the symbol will only be defined by the program and not 
> by any libaries
> Peter

Marking PASCALMAIN as hidden acts as removing
this symbol from library. But only after making this
library. I do not know how can it be done without marking this symbol as
Because we need to perform a linking a  *.o files inside library before
we can
remove PASCALMAIN from the library.

	Sergey Korshunoff

More information about the fpc-devel mailing list