The musl dynamic loader can only deal with secure-plt,
make it the default.

Split out from
https://gcc.gnu.org/ml/gcc-patches/2015-04/msg01640.html
for easier review (independent of the rest of the patch).

gcc/ChangeLog:

2015-10-16  Gregor Richards  <gregor.richa...@uwaterloo.ca>
            Szabolcs Nagy  <szabolcs.n...@arm.com>

        * config.gcc (enable_secureplt): Add *-linux*-musl*.
diff --git a/gcc/config.gcc b/gcc/config.gcc
index 5818663..06376bb 100644
--- a/gcc/config.gcc
+++ b/gcc/config.gcc
@@ -2442,6 +2442,10 @@ powerpc*-*-linux*)
 	    powerpc*-*-linux*paired*)
 		tm_file="${tm_file} rs6000/750cl.h" ;;
 	esac
+	case ${target} in
+	    *-linux*-musl*)
+		enable_secureplt=yes ;;
+	esac
 	if test x${enable_secureplt} = xyes; then
 		tm_file="rs6000/secureplt.h ${tm_file}"
 	fi

Reply via email to