[fpc-devel]An idea how to fix lost exports in smart-linked

Pierre Muller pierre at freepascal.org
Wed Jun 6 12:40:18 CEST 2001

At 12:28 06/06/01 , vous avez écrit:
>It is possible, to supress splitting of .edata's into different modules by 
>smartlinking? If is it easy to keep all .edata's in one
>module, only one global name would be enough to prevent losing exports by 
>smartlinking. For example, it would be possible
>to introduce an obligatory module with standard label (e.g., .global 
>$$EXPORTS$$) and add reference to this label directly to
>startup file or to PASCALMAIN. If output file must contain no exports, 
>this module will contain only this label. If linking is not
>smart, this label will also present in big .ow file. May be, it is a 
>solution? But how easy is supressing of .edata's splitting?
Yes, that is the best solution.
   What we need it to disable the assembler file change for the .edata section
add some label that willo be referenced in the same object file as the 
and that should solve the whole trouble !

   Pavel, could you try to send a patch for this ?

More information about the fpc-devel mailing list