2
0

280-musl-disable-ifunc-by-default.patch 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  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. gcc/
  6. * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
  7. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@239859 138bc75d-0d04-0410-961f-82ee72b054a4
  8. ---
  9. gcc/ChangeLog | 4 ++++
  10. gcc/config.gcc | 4 ++--
  11. 2 files changed, 6 insertions(+), 2 deletions(-)
  12. diff --git a/gcc/config.gcc b/gcc/config.gcc
  13. index 8827dc8..e544d76 100644
  14. --- a/gcc/config.gcc
  15. +++ b/gcc/config.gcc
  16. @@ -1465,7 +1465,7 @@ i[34567]86-*-linux* | i[34567]86-*-kfreebsd*-gnu | i[34567]86-*-gnu* | i[34567]8
  17. extra_options="${extra_options} linux-android.opt"
  18. # Assume modern glibc if not targeting Android nor uclibc.
  19. case ${target} in
  20. - *-*-*android*|*-*-*uclibc*)
  21. + *-*-*android*|*-*-*uclibc*|*-*-*musl*)
  22. ;;
  23. *)
  24. default_gnu_indirect_function=yes
  25. @@ -1531,7 +1531,7 @@ x86_64-*-linux* | x86_64-*-kfreebsd*-gnu)
  26. extra_options="${extra_options} linux-android.opt"
  27. # Assume modern glibc if not targeting Android nor uclibc.
  28. case ${target} in
  29. - *-*-*android*|*-*-*uclibc*)
  30. + *-*-*android*|*-*-*uclibc*|*-*-*musl*)
  31. ;;
  32. *)
  33. default_gnu_indirect_function=yes