[fpc-devel].hidden PASCALMAIN

Peter Vreman peter at freepascal.org
Sun Aug 25 20:54:51 CEST 2002

At 01:10 25-8-2002, you wrote:
>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


More information about the fpc-devel mailing list