* patch from #31920, pass gc-sections to .so's

git-svn-id: trunk@39392 -
This commit is contained in:
marco 2018-07-06 08:17:10 +00:00
parent 841a166847
commit 2a80eb3fdd

View File

@ -353,7 +353,7 @@ begin
with Info do with Info do
begin begin
ExeCmd[1]:='ld '+platform_select+platformopt+' $OPT $DYNLINK $STATIC $GCSECTIONS $STRIP -L. -o $EXE'; ExeCmd[1]:='ld '+platform_select+platformopt+' $OPT $DYNLINK $STATIC $GCSECTIONS $STRIP -L. -o $EXE';
DllCmd[1]:='ld '+platform_select+' $OPT $INIT $FINI $SONAME -shared -L. -o $EXE'; DllCmd[1]:='ld '+platform_select+' $OPT $INIT $FINI $SONAME -shared $GCSECTIONS -L. -o $EXE';
{ when we want to cross-link we need to override default library paths; { when we want to cross-link we need to override default library paths;
when targeting binutils 2.19 or later, we use the "INSERT" command to when targeting binutils 2.19 or later, we use the "INSERT" command to
augment the default linkerscript, which also requires -T (normally that augment the default linkerscript, which also requires -T (normally that