Fresh pull from upstream
[librecmc/librecmc.git] / toolchain / gcc / patches / 6.3.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 --- a/gcc/config.gcc
18 +++ b/gcc/config.gcc
19 @@ -1495,7 +1495,7 @@ i[34567]86-*-linux* | i[34567]86-*-kfree
20                 extra_options="${extra_options} linux-android.opt"
21                 # Assume modern glibc if not targeting Android nor uclibc.
22                 case ${target} in
23 -               *-*-*android*|*-*-*uclibc*)
24 +               *-*-*android*|*-*-*uclibc*|*-*-*musl*)
25                   ;;
26                 *)
27                   default_gnu_indirect_function=yes
28 @@ -1564,7 +1564,7 @@ x86_64-*-linux* | x86_64-*-kfreebsd*-gnu
29                 extra_options="${extra_options} linux-android.opt"
30                 # Assume modern glibc if not targeting Android nor uclibc.
31                 case ${target} in
32 -               *-*-*android*|*-*-*uclibc*)
33 +               *-*-*android*|*-*-*uclibc*|*-*-*musl*)
34                   ;;
35                 *)
36                   default_gnu_indirect_function=yes