[fpc-devel] Section smartlinking enabled for i386-linux
Peter Vreman
peter at freepascal.org
Fri Sep 23 18:58:25 CEST 2005
> On Fri, 23 Sep 2005 15:51:01 +0200 (CEST)
> "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 ?
The smartlink flag in the PPU only gives the compiler info which files can
be used for linking. without this change that is a .o or a .a file. Since
the .a file is not needed anymore there is only the .o left.
Using -XX to remove the ld option (--gc-sections) will have different
effects on the platforms.
A possible solution is to revert to the old single section .o file method
when the option -XS is passed.
More information about the fpc-devel
mailing list