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

123456789101112131415161718192021222324252627282930313233343536
  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. --- a/gcc/config.gcc
  13. +++ b/gcc/config.gcc
  14. @@ -1455,7 +1455,7 @@ i[34567]86-*-linux* | i[34567]86-*-kfree
  15. extra_options="${extra_options} linux-android.opt"
  16. # Assume modern glibc if not targeting Android nor uclibc.
  17. case ${target} in
  18. - *-*-*android*|*-*-*uclibc*)
  19. + *-*-*android*|*-*-*uclibc*|*-*-*musl*)
  20. ;;
  21. *)
  22. default_gnu_indirect_function=yes
  23. @@ -1524,7 +1524,7 @@ x86_64-*-linux* | x86_64-*-kfreebsd*-gnu
  24. extra_options="${extra_options} linux-android.opt"
  25. # Assume modern glibc if not targeting Android nor uclibc.
  26. case ${target} in
  27. - *-*-*android*|*-*-*uclibc*)
  28. + *-*-*android*|*-*-*uclibc*|*-*-*musl*)
  29. ;;
  30. *)
  31. default_gnu_indirect_function=yes