summaryrefslogtreecommitdiffstats
path: root/recipes-ti/devtools/ti-xdctools/arm-linker-hack.diff
blob: 26debf8f6daa43e52e4e4264efc639d08a229e68 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
--- a/packages/gnu/targets/arm/linkcmd.xdt	2010-12-30 19:33:53.000000000 +0100
+++ b/packages/gnu/targets/arm/linkcmd.xdt	2010-12-30 19:42:55.000000000 +0100
@@ -40,12 +40,13 @@
 
 %if ("BINVERS" in prog.build.target) {
 %    var _utils = xdc.loadCapsule("gnu/targets/linkUtils.xs");
+%    if (prog.build.target.GCCVERS < "4.3.3") {
 SECTIONS {
 `_utils.genSections(prog)`
 }
-
-%    if (!prog.build.target.noStdLinkScript
-%        && prog.build.target.BINVERS >= "2.19") {
+%    }
+%    if (prog.build.target.noStdLinkScript
+%        && prog.build.target.BINVERS >= "2.19") {
 INSERT BEFORE .gnu.attributes
 %    }