mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-09-03 02:10:22 +02:00
Improve GNU linker call for m68k-human68k target
+ Add '-b xfile' option + Add '-m human68kxfile' option + Add $GCSECTIONS and set GCSectionStr for GNU linker
This commit is contained in:
parent
f1e32bb187
commit
34ae77bd3b
@ -70,7 +70,7 @@ begin
|
||||
begin
|
||||
if not UseVLink then
|
||||
begin
|
||||
ExeCmd[1]:='ld $DYNLINK $OPT -d -n -o $EXE $RES';
|
||||
ExeCmd[1]:='ld -b xfile -m human68kxfile $DYNLINK $GCSECTIONS $OPT $MAP -d -n -o $EXE $RES';
|
||||
end
|
||||
else
|
||||
begin
|
||||
@ -200,7 +200,11 @@ begin
|
||||
begin
|
||||
if create_smartlink_sections then
|
||||
GCSectionsStr:='-gc-all -sc';
|
||||
end;
|
||||
end
|
||||
else
|
||||
if (cs_link_smart in current_settings.globalswitches) and
|
||||
create_smartlink_sections then
|
||||
GCSectionsStr:='--gc-sections';
|
||||
|
||||
ExeName:=current_module.exefilename;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user