--- fpc/compiler/systems/t_linux.pas- 2005-03-07 17:10:00 +0000 +++ fpc/compiler/systems/t_linux.pas 2005-10-15 16:43:15 +0000 @@ -450,9 +450,8 @@ begin StaticStr:='-static'; if (cs_link_strip in aktglobalswitches) then StripStr:='-s'; - if (cs_link_smart in aktglobalswitches) and - (tf_smartlink_sections in target_info.flags) then - GCSectionsStr:='--gc-sections'; + if (cs_link_smart in aktglobalswitches) then + GCSectionsStr:='--gc-sections --no-keep-memory -O1'; If (cs_profile in aktmoduleswitches) or ((Info.DynamicLinker<>'') and (not SharedLibFiles.Empty)) then begin