# HG changeset patch # User Rob Landley # Date 1450213839 21600 # Node ID c2e158a22d2b004e46b187875d91ebb8959358eb # Parent 297a5d07c73b586278c5d12256c246fff3f48c11 Workaround for the musl mips segfaults. diff -r 297a5d07c73b -r c2e158a22d2b sources/patches/musl-mips.patch --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/sources/patches/musl-mips.patch Tue Dec 15 15:10:39 2015 -0600 @@ -0,0 +1,24 @@ +Workaround for binutils 2.17 linking things on mips in a way musl doesn't like. + +diff --git a/arch/mips/crt_arch.h b/arch/mips/crt_arch.h +index 21e139b..f4ba02a 100644 +--- a/arch/mips/crt_arch.h ++++ b/arch/mips/crt_arch.h +@@ -4,13 +4,16 @@ __asm__( + ".text \n" + ".global _" START "\n" + ".global " START "\n" ++".global " START "_data\n" + ".type _" START ", @function\n" + ".type " START ", @function\n" ++".type " START "_data, @function\n" + "_" START ":\n" + "" START ":\n" + " bal 1f \n" + " move $fp, $0 \n" +-"2: .gpword 2b \n" ++"" START "_data: \n" ++" .gpword " START "_data \n" + " .gpword " START "_c \n" + ".weak _DYNAMIC \n" + ".hidden _DYNAMIC \n"