From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/10012 Path: news.gmane.org!not-for-mail From: Patrick Oppenlander Newsgroups: gmane.linux.lib.musl.general Subject: Re: musl-cross-make / litecross improvements Date: Mon, 9 May 2016 09:04:13 +1000 Message-ID: <572FC5ED.5040604@gmail.com> References: <20160503044835.GA5517@brightrain.aerifal.cx> <572BCCAE.8000202@gmail.com> <20160506024454.GX21636@brightrain.aerifal.cx> <20160506204928.GZ22574@port70.net> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1462748679 18328 80.91.229.3 (8 May 2016 23:04:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 8 May 2016 23:04:39 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-10025-gllmg-musl=m.gmane.org@lists.openwall.com Mon May 09 01:04:34 2016 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1azXkX-0003fP-9n for gllmg-musl@m.gmane.org; Mon, 09 May 2016 01:04:33 +0200 Original-Received: (qmail 11353 invoked by uid 550); 8 May 2016 23:04:30 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-ID: Original-Received: (qmail 11327 invoked from network); 8 May 2016 23:04:29 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.7.0 In-Reply-To: <20160506204928.GZ22574@port70.net> Xref: news.gmane.org gmane.linux.lib.musl.general:10012 Archived-At: On 07/05/16 06:49, Szabolcs Nagy wrote: > i think the powerpc patches wont apply There is one (very minor) change required in gcc/config/rs6000/sysv4.h. The sh sibcall patch also required a very small change in gcc/config/sh/sh.md. Other than that the rest applied. Patrick patrick@gtr ~/src/patrick/musl-cross-make (git)-[master] % diff -ur patches/gcc-5.2.0 patches/gcc-5.3.0 diff -u -ur patches/gcc-5.2.0/0001-musl.diff patches/gcc-5.3.0/0001-musl.diff --- patches/gcc-5.2.0/0001-musl.diff 2016-05-05 15:23:11.817513705 +1000 +++ patches/gcc-5.3.0/0001-musl.diff 2016-05-06 14:36:54.454162324 +1000 @@ -466,16 +466,16 @@ /* Pass -G xxx to the compiler. */ #undef CC1_SPEC -@@ -586,7 +589,8 @@ ENDIAN_SELECT(" -mbig", " -mlittle", DEFAULT_ASM_ENDIAN) +@@ -574,7 +577,8 @@ + %{R*} \ + %(link_shlib) \ + %{!T*: %(link_start) } \ +-%(link_os)" ++%(link_os) \ ++"%{!mbss-plt: %{!msecure-plt: %(link_secure_plt_default)}}" - /* Override the default target of the linker. */ - #define LINK_TARGET_SPEC \ -- ENDIAN_SELECT("", " --oformat elf32-powerpcle", "") -+ ENDIAN_SELECT("", " --oformat elf32-powerpcle", "") \ -+ "%{!mbss-plt: %{!msecure-plt: %(link_secure_plt_default)}}" - - /* Any specific OS flags. */ - #define LINK_OS_SPEC "\ + /* Shared libraries are not default. */ + #define LINK_SHLIB_SPEC "\ @@ -762,17 +766,23 @@ ENDIAN_SELECT(" -mbig", " -mlittle", DEFAULT_ASM_ENDIAN) #define LINK_START_LINUX_SPEC "" diff -u -ur patches/gcc-5.2.0/0008-shsibcall.diff patches/gcc-5.3.0/0008-shsibcall.diff --- patches/gcc-5.2.0/0008-shsibcall.diff 2016-05-05 15:23:11.817513705 +1000 +++ patches/gcc-5.3.0/0008-shsibcall.diff 2016-05-06 15:18:09.679230171 +1000 @@ -4,7 +4,7 @@ (call (mem:SI (match_operand:SI 1 "symbol_ref_operand" "")) (match_operand 2 "" ""))) (use (reg:SI FPSCR_MODES_REG)) -- (clobber (match_scratch:SI 3 "=k")) +- (clobber (match_scratch:SI 3 "=&k")) + (clobber (reg:SI R1_REG)) (return)] "TARGET_SH2 && !TARGET_FDPIC"