af5acf8cc9078d26058e290e4476b9f1eb6bf7cf
[openwrt/openwrt.git] / toolchain / gcc / patches / 5.4.0 / 280-musl-disable-ifunc-by-default.patch
1 From 450fb05e2a7510d37744f044009f8237d902f65c Mon Sep 17 00:00:00 2001
2 From: nsz <nsz@138bc75d-0d04-0410-961f-82ee72b054a4>
3 Date: Tue, 30 Aug 2016 10:26:22 +0000
4 Subject: [PATCH] disable ifunc on *-musl by default
5
6 gcc/
7 * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
8
9
10
11 git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@239859 138bc75d-0d04-0410-961f-82ee72b054a4
12 ---
13 gcc/ChangeLog | 4 ++++
14 gcc/config.gcc | 4 ++--
15 2 files changed, 6 insertions(+), 2 deletions(-)
16
17 diff --git a/gcc/config.gcc b/gcc/config.gcc
18 index 8827dc8..e544d76 100644
19 --- a/gcc/config.gcc
20 +++ b/gcc/config.gcc
21 @@ -1465,7 +1465,7 @@ i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-gnu* | i[34567]8
22 extra_options="${extra_options} linux-android.opt"
23 # Assume modern glibc if not targeting Android nor uclibc.
24 case ${target} in
25 - *-*-*android*|*-*-*uclibc*)
26 + *-*-*android*|*-*-*uclibc*|*-*-*musl*)
27 ;;
28 *)
29 default_gnu_indirect_function=yes
30 @@ -1531,7 +1531,7 @@ x86_64-*-linux* | x86_64-*-kfreebsd*-gnu)
31 extra_options="${extra_options} linux-android.opt"
32 # Assume modern glibc if not targeting Android nor uclibc.
33 case ${target} in
34 - *-*-*android*|*-*-*uclibc*)
35 + *-*-*android*|*-*-*uclibc*|*-*-*musl*)
36 ;;
37 *)
38 default_gnu_indirect_function=yes