From patchwork Fri Nov 27 09:11:26 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 57355 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp1008546lbb; Fri, 27 Nov 2015 01:11:49 -0800 (PST) X-Received: by 10.66.228.225 with SMTP id sl1mr25924656pac.63.1448615509050; Fri, 27 Nov 2015 01:11:49 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t72si3261023pfa.153.2015.11.27.01.11.48; Fri, 27 Nov 2015 01:11:49 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dkim=neutral (body hash did not verify) header.i=@linaro-org.20150623.gappssmtp.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754283AbbK0JLr (ORCPT + 28 others); Fri, 27 Nov 2015 04:11:47 -0500 Received: from mail-lf0-f48.google.com ([209.85.215.48]:33662 "EHLO mail-lf0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751595AbbK0JLd (ORCPT ); Fri, 27 Nov 2015 04:11:33 -0500 Received: by lfaz4 with SMTP id z4so122280655lfa.0 for ; Fri, 27 Nov 2015 01:11:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro-org.20150623.gappssmtp.com; s=20150623; h=from:to:cc:subject:date:message-id; bh=onETJvdGaU92KmUn8ytqbyZqG4o35RCU/JpYY89mvIs=; b=IW/eUZNoY15UK8Mi77V0/6Uaq11wUeIy9PtVqIESPHpILMhbAhf1CJR71+kqjlGHw7 kihEuoakSbpptg7JuToWvkj8pk/MN/Q2ls6jTWnV75RcQhs/jNBjQ04Hh5+tBz0g1Kf4 V2nxAClaj3Nn35Nepfq2rEhx74Q/cxFXhvdisvGrDcLAoSb2nljDj3asq7cJQObiDDp+ W+8EOMU6iBcVOljARZBeP+DOA3allYf4emZazdTIdAa+LTwZsNKtWAJUtg1Z00+4YcgL jidy1tIUOaIvHYicm//jemqywAMqDwfRJxDOaIcuLm+qKsrEEAZQHuZxN/w65iXd982l c4BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=onETJvdGaU92KmUn8ytqbyZqG4o35RCU/JpYY89mvIs=; b=bgzgMuMGLAm/58f/IL27G5HuDddKIItDjnXcCvR2qPTEkoSRpLxddQY485VJyXgoiD NgBndM4vzX0VwqM7bP1cdiyBqCB9AeEf7qHMbUBNeqb7hp2YatUAeg5RZnMRvzpWL4Pb 9P+5bmmoBKOQM3fQuVb8V87XfiHQh09xyyufuXbC9zdy25+xgHdxPMxkh+XHnCFpsnPX wG/1EtFuH48tPYNFBCbh9zSo/7xVSfsWTqK3iHEK2Fn/ArBbzcxWjGkX2gukCLflcMJN FtTiE/DC7xTAps8gIcMqLZSHGFMkYW2BNJW3xSrDrSTQMUeKcrSChE6DlmAeqk6WUUUn 866g== X-Gm-Message-State: ALoCoQnCnpztv4ofXDMjcdBqgHUcrhga2C8gl4Own6woDO/SQS6dTh/BnKTENSq76yw4t0sh8GZu X-Received: by 10.25.21.70 with SMTP id l67mr15909157lfi.27.1448615492439; Fri, 27 Nov 2015 01:11:32 -0800 (PST) Received: from localhost.localdomain (91-157-175-207.elisa-laajakaista.fi. [91.157.175.207]) by smtp.gmail.com with ESMTPSA id px9sm2287603lbb.4.2015.11.27.01.11.30 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Nov 2015 01:11:31 -0800 (PST) From: Riku Voipio To: linux-kernel@vger.kernel.org Cc: akpm@linux-foundation.org, Riku Voipio , Josh Triplett Subject: [PATCH] uselib: default depending if libc5 was used Date: Fri, 27 Nov 2015 11:11:26 +0200 Message-Id: <1448615486-26700-1-git-send-email-riku.voipio@linaro.org> X-Mailer: git-send-email 2.6.2 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org uselib hasn't been used since libc5; glibc does not use it. Deprecate uselib a bit more, by making the default y only if libc5 was widely used on the plaform. This makes arm64 kernel built with defconfig slighly smaller bloat-o-meter: add/remove: 0/3 grow/shrink: 0/2 up/down: 0/-1390 (-1390) function old new delta kernel_config_data 18164 18162 -2 uselib_flags 20 - -20 padzero 216 192 -24 sys_uselib 380 - -380 load_elf_library 964 - -964 Signed-off-by: Riku Voipio Cc: Josh Triplett --- init/Kconfig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.6.2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/ diff --git a/init/Kconfig b/init/Kconfig index c24b6f7..bef326d 100644 --- a/init/Kconfig +++ b/init/Kconfig @@ -285,7 +285,7 @@ config FHANDLE config USELIB bool "uselib syscall" - default y + def_bool ALPHA || M68K || SPARC || X86 help This option enables the uselib syscall, a system call used in the dynamic linker from libc5 and earlier. glibc does not use this