Setup libstdc++.so -> libgnustl_shared.so early
[termux-packages] / packages / gcc / gcc-config-arm-elf.h.patch
CommitLineData
b257fed9
FF
1From https://github.com/crystax/android-toolchain-gcc-6/blob/master/gcc/config/arm/elf.h
2diff -u -r ../gcc-6.1.0/gcc/config/arm/elf.h ./gcc/config/arm/elf.h
3--- ../gcc-6.1.0/gcc/config/arm/elf.h 2016-01-04 09:30:50.000000000 -0500
4+++ ./gcc/config/arm/elf.h 2016-04-29 04:47:31.773001584 -0400
5@@ -56,8 +56,7 @@
6 #undef SUBSUBTARGET_EXTRA_SPECS
7 #define SUBSUBTARGET_EXTRA_SPECS
8
9-#ifndef ASM_SPEC
10-#define ASM_SPEC "\
11+#define DEFAULT_ASM_SPEC "\
12 %{mbig-endian:-EB} \
13 %{mlittle-endian:-EL} \
14 %(asm_cpu_spec) \
15@@ -66,6 +65,9 @@
16 %{mthumb-interwork:-mthumb-interwork} \
17 %{mfloat-abi=*} %{mfpu=*} \
18 %(subtarget_extra_asm_spec)"
19+
20+#ifndef ASM_SPEC
21+ #define ASM_SPEC DEFAULT_ASM_SPEC
22 #endif
23
24 /* The ARM uses @ are a comment character so we need to redefine
25@@ -104,7 +106,8 @@
26 the code more efficient, but for Thumb-1 it's better to put them out of
27 band unless we are generating compressed tables. */
28 #define JUMP_TABLES_IN_TEXT_SECTION \
29- (TARGET_32BIT || (TARGET_THUMB && (optimize_size || flag_pic)))
30+ (TARGET_32BIT || (TARGET_THUMB && !inline_thumb1_jump_table \
31+ && (optimize_size || flag_pic)))
32
33 #ifndef LINK_SPEC
34 #define LINK_SPEC "%{mbig-endian:-EB} %{mlittle-endian:-EL} -X"