From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4712 Path: news.gmane.org!not-for-mail From: "Anthony G. Basile" Newsgroups: gmane.linux.lib.musl.general Subject: Re: i686 with -fPIE and -fstack-protector-all Date: Sat, 22 Mar 2014 16:44:34 -0400 Message-ID: <532DF632.40000@opensource.dyc.edu> References: <532D87B3.8050001@opensource.dyc.edu> <20140322130637.GE27448@port70.net> <532D913C.7080407@opensource.dyc.edu> <20140322174232.GP26358@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1395521054 22030 80.91.229.3 (22 Mar 2014 20:44:14 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Mar 2014 20:44:14 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4716-gllmg-musl=m.gmane.org@lists.openwall.com Sat Mar 22 21:44:25 2014 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1WRSmG-0006jy-GD for gllmg-musl@plane.gmane.org; Sat, 22 Mar 2014 21:44:24 +0100 Original-Received: (qmail 28439 invoked by uid 550); 22 Mar 2014 20:44:23 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 28431 invoked from network); 22 Mar 2014 20:44:23 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.3.0 In-Reply-To: <20140322174232.GP26358@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:4712 Archived-At: On 03/22/2014 01:42 PM, Rich Felker wrote: > On Sat, Mar 22, 2014 at 09:33:48AM -0400, Anthony G. Basile wrote: >> On 03/22/2014 09:06 AM, Szabolcs Nagy wrote: >>> * Anthony G. Basile [2014-03-22 08:53:07 -0400]: >>>> I've hit a bug with 1.0.0 on i686. When building with >>>> -fstack-protector-all and -fPIE, I get an undefined reference to >>>> `__stack_chk_fail_local'. I do not get this on x86_64: >>>> >>> >>> may be this gcc bug should be in the faq >>> >>> http://gcc.gnu.org/ml/gcc/2012-01/msg00012.html >>> http://git.alpinelinux.org/cgit/aports/tree/main/musl/__stack_chk_fail_local.c >>> >> >> Thanks it. I was going to adopt a patch like alpines but hesitated >> in csae I was missing something. >> >> Aside: it looks like alpine is hitting a lot of the same issues i am >> with gentoo+musl and adopting similar approaches, like getent and >> ldconfig. > > Can ldconfig just be an empty script? Or does it need to make plain > .so symlinks to all the .so.X.Y.Z files so that ld can find them? I'm > not clear on whether most packages (e.g. libtool based) do the symlink > themselves or expect ldconfig to do so. It doesn't affect runtime > usage but it does affect linking programs against the library. There is at least one package, I can't remember which, that does depend on ldconfig's output to do the symlinking. I'm sure others are in the same boat. > > If we can figure out all this stuff, it would be great if someone > could make a clean git repo of replacements for all of the glibc > binaries that one could use with musl. Do you (or anyone else) have a > list of programs we'd need to make dists happy? > > Rich > I'm not sure what you mean here, but what I've been doing is building up a git repo of ebuilds with patches aginst various packages to make them compile against musl, like sabotage or alpine does. -- Anthony G. Basile, Ph. D. Chair of Information Technology D'Youville College Buffalo, NY 14201 (716) 829-8197