summaryrefslogtreecommitdiffstats
path: root/package/gcc/4.8-arc/disable_gc_sections.patch
blob: 46a3a2697b3e27150a5debe426eab4b3bfb80d8f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
From be904b178fc0858ad41a3c2fbc13b388bd1ff465 Mon Sep 17 00:00:00 2001
From: Mischa Jonker <mjonker@synopsys.com>
Date: Mon, 15 Jul 2013 11:50:20 +0200
Subject: [PATCH] libstdc++: Disable gc-sections to work around binutils bug

This is to work around the following error message:
BFD (GNU Binutils) 2.23.2 assertion fail elf32-arc.c:2140

Signed-off-by: Mischa Jonker <mjonker@synopsys.com>
---
 libstdc++-v3/acinclude.m4 |    3 ---
 libstdc++-v3/configure    |   33 ---------------------------------
 2 files changed, 36 deletions(-)

diff --git a/libstdc++-v3/acinclude.m4 b/libstdc++-v3/acinclude.m4
index e131214..aa2e375 100644
--- a/libstdc++-v3/acinclude.m4
+++ b/libstdc++-v3/acinclude.m4
@@ -296,9 +296,6 @@ AC_DEFUN([GLIBCXX_CHECK_LINKER_FEATURES], [
       fi
       rm -f conftest.c conftest.o conftest
     fi
-    if test "$ac_gcsections" = "yes"; then
-      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
-    fi
     AC_MSG_RESULT($ac_gcsections)
 
     if test "$ac_test_CFLAGS" = set; then
diff --git a/libstdc++-v3/configure b/libstdc++-v3/configure
index ed049cf..d325e3e 100755
--- a/libstdc++-v3/configure
+++ b/libstdc++-v3/configure
@@ -20653,9 +20653,6 @@ rm -f core conftest.err conftest.$ac_objext \
       fi
       rm -f conftest.c conftest.o conftest
     fi
-    if test "$ac_gcsections" = "yes"; then
-      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
-    fi
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
 $as_echo "$ac_gcsections" >&6; }
 
@@ -27688,9 +27685,6 @@ rm -f core conftest.err conftest.$ac_objext \
       fi
       rm -f conftest.c conftest.o conftest
     fi
-    if test "$ac_gcsections" = "yes"; then
-      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
-    fi
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
 $as_echo "$ac_gcsections" >&6; }
 
@@ -33619,9 +33613,6 @@ rm -f core conftest.err conftest.$ac_objext \
       fi
       rm -f conftest.c conftest.o conftest
     fi
-    if test "$ac_gcsections" = "yes"; then
-      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
-    fi
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
 $as_echo "$ac_gcsections" >&6; }
 
@@ -45496,9 +45487,6 @@ rm -f core conftest.err conftest.$ac_objext \
       fi
       rm -f conftest.c conftest.o conftest
     fi
-    if test "$ac_gcsections" = "yes"; then
-      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
-    fi
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
 $as_echo "$ac_gcsections" >&6; }
 
@@ -45710,9 +45698,6 @@ rm -f core conftest.err conftest.$ac_objext \
       fi
       rm -f conftest.c conftest.o conftest
     fi
-    if test "$ac_gcsections" = "yes"; then
-      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
-    fi
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
 $as_echo "$ac_gcsections" >&6; }
 
@@ -46185,9 +46170,6 @@ rm -f core conftest.err conftest.$ac_objext \
       fi
       rm -f conftest.c conftest.o conftest
     fi
-    if test "$ac_gcsections" = "yes"; then
-      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
-    fi
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
 $as_echo "$ac_gcsections" >&6; }
 
@@ -52470,9 +52452,6 @@ rm -f core conftest.err conftest.$ac_objext \
       fi
       rm -f conftest.c conftest.o conftest
     fi
-    if test "$ac_gcsections" = "yes"; then
-      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
-    fi
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
 $as_echo "$ac_gcsections" >&6; }
 
@@ -58386,9 +58365,6 @@ rm -f core conftest.err conftest.$ac_objext \
       fi
       rm -f conftest.c conftest.o conftest
     fi
-    if test "$ac_gcsections" = "yes"; then
-      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
-    fi
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
 $as_echo "$ac_gcsections" >&6; }
 
@@ -58553,9 +58529,6 @@ rm -f core conftest.err conftest.$ac_objext \
       fi
       rm -f conftest.c conftest.o conftest
     fi
-    if test "$ac_gcsections" = "yes"; then
-      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
-    fi
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
 $as_echo "$ac_gcsections" >&6; }
 
@@ -58781,9 +58754,6 @@ rm -f core conftest.err conftest.$ac_objext \
       fi
       rm -f conftest.c conftest.o conftest
     fi
-    if test "$ac_gcsections" = "yes"; then
-      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
-    fi
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
 $as_echo "$ac_gcsections" >&6; }
 
@@ -64697,9 +64667,6 @@ rm -f core conftest.err conftest.$ac_objext \
       fi
       rm -f conftest.c conftest.o conftest
     fi
-    if test "$ac_gcsections" = "yes"; then
-      SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS"
-    fi
     { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_gcsections" >&5
 $as_echo "$ac_gcsections" >&6; }
 
-- 
1.7.9.5

OpenPOWER on IntegriCloud