From patchwork Tue Dec 1 14:08:57 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 57492 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp2195623lbb; Tue, 1 Dec 2015 06:09:09 -0800 (PST) X-Received: by 10.67.4.202 with SMTP id cg10mr97102464pad.81.1448978949256; Tue, 01 Dec 2015 06:09:09 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id qj4si17830074pac.33.2015.12.01.06.09.08; Tue, 01 Dec 2015 06:09:09 -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 S1756371AbbLAOJG (ORCPT + 28 others); Tue, 1 Dec 2015 09:09:06 -0500 Received: from mail-lf0-f50.google.com ([209.85.215.50]:35614 "EHLO mail-lf0-f50.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755443AbbLAOJE (ORCPT ); Tue, 1 Dec 2015 09:09:04 -0500 Received: by lfdl133 with SMTP id l133so9516389lfd.2 for ; Tue, 01 Dec 2015 06:09:02 -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=lHdg8TYTX29Mdd/G6fwdjjERm9DYrJhI05e5mP5BQAk=; b=tmNk+wrEDUncr53k3h6AjfXldYFbbotvX7qFoSW/X0NmsNOzpjmkq2YcrSiaJitxHY MZPalm4Rael3f1KJFtwjvXEHT5e142QHvt+NGTxctiMQYtaTF9EfNhYGfup9vmq5wX3P FBPVEIMSHy33ZAAeIp5lVu84iAXhclTz1sdLqecVgEy9qtXdohLBI1bwjV59CDyx8T2B BUwXNLK+Y5yTvdnpO5ADOenEKcLqng7yiAbUVuL8Hvxe4dDB0rd2NWheAgWktrWzy2RI t6BSy4laTfoPbb6voTOSKyelF94S3D0/p8hVFrWF9oW1ZwSKEpeZ41l/NLVjURhxbqfU NX0w== 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=lHdg8TYTX29Mdd/G6fwdjjERm9DYrJhI05e5mP5BQAk=; b=J6aKtEfMuZ67QPXVrBFDcXzljCHSUxqh8JTRfcRhsubZqxKe3mMUklEzBPw1edaEu0 AnZ3kIA78zlp/aIul0bAog360t23EqaMzPZL1O6ynwDQRqE91/xvq0F9tWmb93gYxRQ7 +n5bfp1qsG28sdcBnp+pjscZNE06iENKgURjWSvD0LR6mzKsi14Q9w0tjGS/UuyXt7nt FDdoBaqYbvGJ8en30CnIF+fKSVRCfyB2ihO6hi7LutL+NGb6oWgYSsSuvs0kgYQvMbDK ZtT8VJGOgm0WPN0KAzDrrQLu1zix/T/MGdJbv6hGevrTJP1MEa713Kk/i/PBq9EbthNS hwmQ== X-Gm-Message-State: ALoCoQl3cuu5yZfvlp56g5/V2sVC9r0jOsBM/ztYa3K/0m/NNF+0IVHE89Hd+J8uYcK9wIwaB4wr X-Received: by 10.112.77.98 with SMTP id r2mr23530952lbw.124.1448978942830; Tue, 01 Dec 2015 06:09:02 -0800 (PST) Received: from localhost.localdomain (91-157-175-207.elisa-laajakaista.fi. [91.157.175.207]) by smtp.gmail.com with ESMTPSA id t82sm8240152lfe.14.2015.12.01.06.09.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 01 Dec 2015 06:09:01 -0800 (PST) From: Riku Voipio To: linux-kernel@vger.kernel.org Cc: akpm@linux-foundation.org, Riku Voipio , Josh Triplett Subject: [PATCH v3] uselib: default depending if libc5 was used Date: Tue, 1 Dec 2015 16:08:57 +0200 Message-Id: <1448978937-8009-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 slightly 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 --- v3: only depend on IA32_EMULATION to catch X86_64 with 32bit case v2: Disable uselib on X86_64 if no 32bit support 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..5a7f375 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_32 || IA32_EMULATION help This option enables the uselib syscall, a system call used in the dynamic linker from libc5 and earlier. glibc does not use this