From patchwork Fri Nov 27 11:14:20 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Riku Voipio X-Patchwork-Id: 57362 Delivered-To: patch@linaro.org Received: by 10.112.155.196 with SMTP id vy4csp1069703lbb; Fri, 27 Nov 2015 03:14:39 -0800 (PST) X-Received: by 10.66.101.2 with SMTP id fc2mr66828293pab.139.1448622879204; Fri, 27 Nov 2015 03:14:39 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 82si6703812pfq.220.2015.11.27.03.14.38; Fri, 27 Nov 2015 03:14:39 -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 S1754562AbbK0LOh (ORCPT + 28 others); Fri, 27 Nov 2015 06:14:37 -0500 Received: from mail-lf0-f52.google.com ([209.85.215.52]:34489 "EHLO mail-lf0-f52.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753926AbbK0LOe (ORCPT ); Fri, 27 Nov 2015 06:14:34 -0500 Received: by lffu14 with SMTP id u14so126097098lff.1 for ; Fri, 27 Nov 2015 03:14:33 -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=38H4S+9rMP3tMC51aZ5tewFf/t6Rv2lUvnvbhj82J+k=; b=loBduBJZ0zTdDOSp74f8z+40R7zmZ8rwAEvFlJhQJQlQS6ZFsQcLrI5jfpZmwL4QkD CkdqCmFn4UcKeVWWHjaBZkLnT6WCvtdxPZ00DxUu1xkiwEySLuWNyxiGqP11ww5Y1UT4 JYPT3GwUn603AvEHP9k10+9aFxiYh2gogzXwbjrHRk6KG6ZFWSoXMrGkGPCjKdMjqW7I gJyHEug3+DEjUhPZ1/RWgEgyf0dYKT1M6Y+QxcnI8a4BZXvnzC2CNHDXmX+EjY6q6Ckk HbirTIMvMVt2ofMk+CnG4T35DJzuFSPSEuoD/0zIfht5mi2aMuorsF5jR9lavy5zvRJv ArIg== 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=38H4S+9rMP3tMC51aZ5tewFf/t6Rv2lUvnvbhj82J+k=; b=TIojbeaXm/wXWQEvTBa0VS+AD5MYA+hjbC3HckJc/Y+xzt/bpzzikzpb5ZRWtl8Bqf YKoYG41ec2jWfMGJRtUAVPC+mwJEjivaagoDGF0B2E9SwGCMznPxKdU55J3XzZW/FFgA Jxk2UPXNn8jXnoi8snmdZf9jfOaT4FPMhmnXiqimDVhh02x1uPHRGoMTrCHg24Skyr+t wi1kGawOuY0o6S7o2f7M5+ATUNoUV+dYtKH+A3la+n1E6Ykf9jNyNahpfeilVhy6XN8I yd8o4O3+MStEctNMDT5pve5B8yN++Dw9gKhyenTeHsMljdZ++rxm2elY7x9Sf8nbGn0A c6dg== X-Gm-Message-State: ALoCoQnk7gXCQriBTN8kgyolcr0ZvRvDkIEe3mW5oQIEumFF58vtsirnBgxkbVHjkryK5AplXXsc X-Received: by 10.25.88.67 with SMTP id m64mr20447564lfb.23.1448622873253; Fri, 27 Nov 2015 03:14:33 -0800 (PST) Received: from localhost.localdomain (91-157-175-207.elisa-laajakaista.fi. [91.157.175.207]) by smtp.gmail.com with ESMTPSA id a18sm4926528lfb.37.2015.11.27.03.14.31 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 27 Nov 2015 03:14:32 -0800 (PST) From: Riku Voipio To: linux-kernel@vger.kernel.org Cc: akpm@linux-foundation.org, Riku Voipio , Josh Triplett Subject: [PATCH v2] uselib: default depending if libc5 was used Date: Fri, 27 Nov 2015 13:14:20 +0200 Message-Id: <1448622860-9689-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 --- v2: Disable 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..a4bc657 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 || (X86_64 && 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