From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/12781 Path: news.gmane.org!.POSTED!not-for-mail From: Patrick Oppenlander Newsgroups: gmane.linux.lib.musl.general Subject: Re: Some questions Date: Mon, 30 Apr 2018 15:17:11 +1000 Message-ID: References: <20180430031653.GI1392@brightrain.aerifal.cx> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" X-Trace: blaine.gmane.org 1525065320 7565 195.159.176.226 (30 Apr 2018 05:15:20 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 30 Apr 2018 05:15:20 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-12797-gllmg-musl=m.gmane.org@lists.openwall.com Mon Apr 30 07:15:16 2018 Return-path: Envelope-to: gllmg-musl@m.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by blaine.gmane.org with smtp (Exim 4.84_2) (envelope-from ) id 1fD19g-0001su-50 for gllmg-musl@m.gmane.org; Mon, 30 Apr 2018 07:15:16 +0200 Original-Received: (qmail 24334 invoked by uid 550); 30 Apr 2018 05:17:24 -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 24315 invoked from network); 30 Apr 2018 05:17:23 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=aML63Ix0120D/0oxDIzLkGBI1Grqm+X6lRbUX/RnltA=; b=Wvirer7I/TdNbL7AtLErTbQGID2n4ZIB3nXAroiAYwLHydRjp9zkWBwA6kabMXY5aO HrUsoT7MUL7ffRJiz8ssnDX6ZgH9QKjEw/1E8Oqm4zUJFFS5R+3NZNPP5IO7GyB6Za4W hJi+bf6qCJybzbKiYW2bRPSIO6szyAwSD5zCV+nRTkSqzxk7XiVlnR8Cq0ST+ZEX7Yr5 eLi93+4wnKhAyXcj6w+rGuVfZssbQb3U7dCGi8Wnzsa51KWPNUZDMfo4G+/FVsKq1rNA QSZCAD+/g+TbtS/eMY7HN5M7nFyB4KwZylPvRBWFP9Iw4OMy9eKnYdHm8SiSgmDGZ8/g Ft6w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=aML63Ix0120D/0oxDIzLkGBI1Grqm+X6lRbUX/RnltA=; b=DEg8+y3ba02rhZYzNqFN+ppNurUQ0tuP5T0ohDJX4CGcXrd+UcMjcQnHreMRXKm0j3 FyHHOnPeXrlDzykRNy7aVRfImW5G/YkQbY3vy3dzHht/QMwQ1iH4GLitvB9aSnzNLAKC ZFEzMYTF0nm3YTPq/DoUib+PZnCkMNYbOQcIHLl/gCEzQ7remGVVG5rvpukyUre0ppd+ 2cdbrXX/G0JjgFvmhzORo8yS5rZUHW1z1XP85xsXia6d3iqJFERyZFlv8dy5cbPtdjLY CasxiES+HUa2fli0qa2PHdk5ZoWHQ3o5fOLzde/EvDX4noWQNq5+SEXOSU9YHe6fVLCx xrug== X-Gm-Message-State: ALQs6tDLBLrqYhhzdf0LuL+wpGPBzFXEmGFFY4CyYoWEWUPVIeMLiA/+ yOJfxQA9lmOnatWWN416bcwhtGnGgMno/T6IBywpFBa4 X-Google-Smtp-Source: AB8JxZpHXTwQaWVKUG5J4bR+zgf6XJV/61l1rfCn8PN0WQ18NpAVbbRkKdCJB7T5vWfl/knqdAzJaikOeDfCfQiIbA0= X-Received: by 10.55.31.2 with SMTP id f2mr9174355qkf.434.1525065431811; Sun, 29 Apr 2018 22:17:11 -0700 (PDT) In-Reply-To: <20180430031653.GI1392@brightrain.aerifal.cx> Xref: news.gmane.org gmane.linux.lib.musl.general:12781 Archived-At: On Mon, Apr 30, 2018 at 1:16 PM, Rich Felker wrote: >> - Are there any plans to support static linking with LTO? > > It should be possible, but gcc mishandles the crt files when doing > LTO. I think if you suppress LTO for them it works. Someone posted > results experimenting with it either on the list or IRC channel > recently. I'll see if I can find anything useful. Last time I tried to LTO a C library I ran into this: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=63215#c1 I ended up building parts of the library as -fno-lto which worked but was fairly painful. But that was 2014, so maybe the situation is different now. Patrick