Skip to content

Commit decff71

Browse files
committed
fbc: pass '-T scriptfile' option to linker LD and add 'INSERT AFTER .data;' to fbextra.x linker script to quiet warning on LD version 2.36 and higher
1 parent 332f68f commit decff71

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

changelog.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
Version 1.08.1
22

33
[changed]
4+
- github #314: fbc: pass '-T scriptfile' option to linker LD and add 'INSERT AFTER .data;' to fbextra.x linker script to quiet warning on LD version 2.36 and higher
45

56
[added]
67

lib/fbextra.x

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,4 @@ SECTIONS
1010
*(.fbctinf)
1111
}
1212
}
13+
INSERT AFTER .data;

src/compiler/fbc.bas

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -791,7 +791,7 @@ private function hLinkFiles( ) as integer
791791
(fbGetOption( FB_COMPOPT_TARGET ) <> FB_COMPTARGET_SOLARIS) and _
792792
( fbGetOption( FB_COMPOPT_TARGET ) <> FB_COMPTARGET_JS ) and _
793793
(not fbcIsUsingGoldLinker( )) ) then
794-
ldcline += " """ + fbc.libpath + (FB_HOST_PATHDIV + "fbextra.x""")
794+
ldcline += " -T """ + fbc.libpath + (FB_HOST_PATHDIV + "fbextra.x""")
795795
end if
796796
end if
797797

0 commit comments

Comments
 (0)