From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/7791 Path: news.gmane.org!not-for-mail From: Timo Teras Newsgroups: gmane.linux.lib.musl.general Subject: Re: Question re: dynamic linking in musl Date: Wed, 27 May 2015 16:23:26 +0300 Message-ID: <20150527162326.15405862@vostro> References: <20150527100844.GA306@alex-ThinkPad-L530> <5565A812.9090004@gmail.com> <20150527160955.1bda26cf@vostro> <5565C357.1070508@gmail.com> Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1432733023 21257 80.91.229.3 (27 May 2015 13:23:43 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 27 May 2015 13:23:43 +0000 (UTC) Cc: musl@lists.openwall.com To: Alex Dowad Original-X-From: musl-return-7803-gllmg-musl=m.gmane.org@lists.openwall.com Wed May 27 15:23:42 2015 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 1YxbJ8-0000ka-Fo for gllmg-musl@m.gmane.org; Wed, 27 May 2015 15:23:42 +0200 Original-Received: (qmail 9286 invoked by uid 550); 27 May 2015 13:23:40 -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 9268 invoked from network); 27 May 2015 13:23:39 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-type:content-transfer-encoding; bh=bjq3XdoDvgwjfQqSLh66EtXNcCCIysV/Lf7R9VU8Ktk=; b=TLv0xCP6gDO2pcweZHMSIVlD2YuwbHz0rsP5cGL0IBnEoSlvXwRw3J6V+4inSz5rdN 8bXUsRo4Tfbq6Zm5dgLxDFtmw6u2ud6cnRRwxQrg1w6sieHCO7/+RBjOkEjEmsPKf8vP W9yfjJFWv+Ve1pSFFeFBb2ZTjnxCY4tTRr2ZdDId5sVOBuxaEKBFAnd3dYJ+Mo14UD7X eeJmoKDTH0qmXIUQv1BECQKveX7ewoB6GHTgl3ORlQuxDz5A90yCSwrUkEz+v/5+sSFh K5UrRAfHExpWxFiOtZ2uHryaDHNmwx6VPSCAw2pClZWeD5FSDz8RyJtWGQnYO+c/WDJ8 rBrA== X-Received: by 10.152.9.66 with SMTP id x2mr27929275laa.36.1432733008262; Wed, 27 May 2015 06:23:28 -0700 (PDT) Original-Sender: =?UTF-8?Q?Timo_Ter=C3=A4s?= In-Reply-To: <5565C357.1070508@gmail.com> X-Mailer: Claws Mail 3.11.1 (GTK+ 2.24.25; x86_64-alpine-linux-musl) Xref: news.gmane.org gmane.linux.lib.musl.general:7791 Archived-At: On Wed, 27 May 2015 15:15:03 +0200 Alex Dowad wrote: > On 27/05/15 15:09, Timo Teras wrote: > > On Wed, 27 May 2015 16:01:50 +0300 (MSK) > > Alexander Monakov wrote: > > > >> I'm not familiar with Alpine. Hopefully someone else can chime in > >> whether .gnu.hash is deliberately disabled. > > We have not touched, so we are using the gcc default. Which > > apparently then is sysv only (bummer). > > Yes, that callgrind profile was from a program installed from Alpine > repos. > > Use --hash-style=both in LD_FLAGS when building the APKs, and dynamic > linking will become much faster! We want that in the toolchain. It's gcc configure option: --with-linker-hash-style={sysv,gnu,both} I wonder if it should be 'gnu' or 'both'. Apparently 'both' will be larger as then everything is hashed twice. Is there any known issues if I just specify 'gnu' ?