From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/4710 Path: news.gmane.org!not-for-mail From: Rich Felker Newsgroups: gmane.linux.lib.musl.general Subject: Re: i686 with -fPIE and -fstack-protector-all Date: Sat, 22 Mar 2014 13:42:32 -0400 Message-ID: <20140322174232.GP26358@brightrain.aerifal.cx> References: <532D87B3.8050001@opensource.dyc.edu> <20140322130637.GE27448@port70.net> <532D913C.7080407@opensource.dyc.edu> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1395510155 22500 80.91.229.3 (22 Mar 2014 17:42:35 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 22 Mar 2014 17:42:35 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-4714-gllmg-musl=m.gmane.org@lists.openwall.com Sat Mar 22 18:42:46 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 1WRPwU-0005gr-8m for gllmg-musl@plane.gmane.org; Sat, 22 Mar 2014 18:42:46 +0100 Original-Received: (qmail 16133 invoked by uid 550); 22 Mar 2014 17:42:45 -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 16125 invoked from network); 22 Mar 2014 17:42:44 -0000 Content-Disposition: inline In-Reply-To: <532D913C.7080407@opensource.dyc.edu> User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:4710 Archived-At: 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. 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