[fpc-devel] Section smartlinking enabled for i386-linux

Marco van de Voort marcov at stack.nl
Fri Sep 23 18:37:53 CEST 2005


> "Peter Vreman" <peter at freepascal.org> wrote:
> 
> >              name         : 'Linux for i386';
> >              shortname    : 'Linux';
> > -            flags        :
> > [tf_needs_symbol_size,tf_pic_uses_got{,tf_smartlink_sections}];
> > +            flags        :
> > [tf_needs_symbol_size,tf_pic_uses_got,tf_smartlink_sections];
> >              cpu          : cpu_i386;
> 
> Maybe silly question: why doesn't -XX add or remove that smartlink flag ?

Because 

1) the dividing into sections is done during compiletime, not link time.
2) the compiler has to know what kind of smartlinking .o's in .a's or sections in .o's
is done.



More information about the fpc-devel mailing list