Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754381AbbHGAtA (ORCPT ); Thu, 6 Aug 2015 20:49:00 -0400 Received: from mail-am1on0057.outbound.protection.outlook.com ([157.56.112.57]:33254 "EHLO emea01-am1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753694AbbHGAs6 (ORCPT ); Thu, 6 Aug 2015 20:48:58 -0400 Authentication-Results: spf=fail (sender IP is 12.216.194.146) smtp.mailfrom=ezchip.com; lists.openwall.com; dkim=none (message not signed) header.d=none; From: Chris Metcalf To: Andy Lutomirski , Anton Blanchard , Martin Schwidefsky , Richard Kuo CC: Chris Metcalf , X86 ML , "linux-kernel@vger.kernel.org" , Nathan Lynch , Isaac Dunham , Rich Felker , "musl@lists.openwall.com" Subject: [PATCH] tile/vdso: emit a GNU hash as well Date: Thu, 6 Aug 2015 20:48:40 -0400 Message-ID: <1438908520-3192-1-git-send-email-cmetcalf@ezchip.com> X-Mailer: git-send-email 2.1.2 In-Reply-To: X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1;DB3FFO11OLC002;1:q/UTvsN/snoW8jsjNZYAVd4/NF+nYP8SnSFg+vE4SIsPW0LKJd4T3lCG1EtzVBVotvCytN95xNVJG2lL8Pz8Jof2ZsfQaLq7vAq4f3wbgesBP0+XeA6jCiHFQMWorTypMNaIU+7fmBAG1M838lQbYPr5KDANiTdamliLh7+EySgo9W8L2yEgDFyEntuYYKN9xaOwkrX07VkWp6G9VbQKYrxrFJkiGAk2gC+waXare4oCMIgxcKwly5OGmqSmN4W//sK4VROUOuZub0doihMcpWjCd+NBQWBx63VFyWFbN58l65lTKLkFCSgk3hS2i92bV2SFm5TMH4OvR6o9s5TkZA== X-Forefront-Antispam-Report: CIP:12.216.194.146;CTRY:US;IPV:NLI;EFV:NLI;SFV:NSPM;SFS:(10009020)(6009001)(2980300002)(339900001)(199003)(189002)(5001830100001)(5001770100001)(92566002)(104016003)(33646002)(68736005)(229853001)(62966003)(48376002)(86362001)(77156002)(87936001)(50466002)(46102003)(106476002)(2950100001)(106466001)(50986999)(106356001)(36756003)(6806004)(5001860100001)(5003940100001)(105606002)(81156007)(4001540100001)(42186005)(5001960100002)(97736004)(189998001)(64706001)(19580405001)(47776003)(19580395003)(85426001)(50226001)(9376004);DIR:OUT;SFP:1101;SCL:1;SRVR:AM2PR02MB0771;H:ld-1.internal.tilera.com;FPR:;SPF:Fail;PTR:InfoNoRecords;A:1;MX:1;LANG:en; MIME-Version: 1.0 Content-Type: text/plain X-Microsoft-Exchange-Diagnostics: 1;AM2PR02MB0771;2:PJyVSwo88Sfe+7s16tgEpWrz6ICUILfVKXACJCMy8khz5tfoxMFES0lzzP+k6TDVbYIQKp2vgRrXsUYl+Z344edDHF913ymsTl3huiCFkJBXWnMM2Pe1Rw8d000Q6u5WrBEd5Caur082kqWv3fKwEFI+wMgKaRC75aqnYM486yQ=;3:occ2fF+4qqSbcPwcbZLBJTukdNywr8t2/CHCYTjDhC/Z5ytgkqMNdtom7iZZX1PGaqtVqHRWA+npR7CuR+C+DNb1cG4A2fctBAFIzJSXd+k5qjcGY0cvy6EDQn1U3wpxvVmRl9UHH0A9A2IMW9qLY2OhyCE2xTGrE068CnMKslKHIXZ0l4urzZjpQXW8fLh+SKoqYeX16pfskjnz0OPacE0XThsrk78hpz+k/LgBRkWKHpWhnfWFgvo/wX1SUkn2;25:+n8ChvNtk9rUk8yrRWiouJXVdUc95IUdrCtU/UIlzflzQSK+O+bnVcNygaqgt988xjmMu7uqtihiCVp5uOckMskOy/zXcnTR1nQV2EGHl71r8i0Nd1CHQyop6FTJds0Vf2fOfAVOyyllShBzRqweaL/4eXq/WajApjeJuSGzA6dM34mDAZFDflG3H6ZpmWrqJtuRPKjQU6g6zA39/LwPz/5ygQHOaN3FZDHwDdyVq5wgtvBOxS6Wz1PTXyA0tCtvWEuej8Fk0n5u8dVZ8guKag==;20:7Yl+Cn5cFESz8Te+TN/878g75TfXVGRIbAzXp0ThuAwE0BoohdLZBS11oZsSNNSjs0w7RC2hhuUMU5aSKIruGmNNv1ZJZ+2x2wGhAZM8FEmUkfxk4zsVQ7iPPmPnOFaoyFGgoaEUzVcu8Xyyjx3v/uwSwb2XD3kVlp19ybATDRA= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:AM2PR02MB0771; X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0;PCL:0;RULEID:(601004)(5005006)(3002001);SRVR:AM2PR02MB0771;BCL:0;PCL:0;RULEID:;SRVR:AM2PR02MB0771; X-Microsoft-Exchange-Diagnostics: 1;AM2PR02MB0771;4:TBxmAA6zdmMWXXGXfW42bRYwl3mfzczvaW2T2EvTRzdqFsSWv9RxxjcwRbI+7joMF60rOo91bJrboSxcwh0+ac2wINvJtKSVhJVOjDgBMU1EwMXQ+LgvZ8JBDHXDaFq6OYitlBAuUdOT1toUS+pHT2nKBFtQ3ynwz4HHCLthYVOp03235CesZWUOiHCNrCOrsFEbQd2rhkkhV5kuo0+i2wCdApd+0MtqMDzaVlsxcUpTuIxy4JL8xUy/vWh8NB3O9XbfvYnTYrP10l1sxd1F9bc7T0rfONvdr7j9cfLjUgw= X-Forefront-PRVS: 066153096A X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;AM2PR02MB0771;23:X7djtWR2Q6BaYXuoBGdipKoEHSh/3ntR95+eV7S8M?= =?us-ascii?Q?zFrRkDUsSjKc7VByhwKBmJi6Fx4OWSTKKHATJ3D2hkiwQ+/1KRrpKRKqFe5T?= =?us-ascii?Q?kaEeD1qW5czX+k+bGXItkaN/1/FPsz2xGUHAY7g9bfGn+XRtIWZUCGsxK4Wf?= =?us-ascii?Q?3KSm4rP9n1Hz4Nq4ApuL/3u7jFHC7V7knZ/UX6Pc22BcIwCRJfkfVckORF+5?= =?us-ascii?Q?g5LcpOdZgkZOxkDxVqr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K+Qg?= =?us-ascii?Q?12URYE4BvI=3D?= X-Microsoft-Exchange-Diagnostics: 1;AM2PR02MB0771;5:wz74CMtKxjeeKBsNPUBPmuWpxS7jiZzFg2riCc2fz4U1eBPi62ApCHR650C7j3Xe+4I7RFRdkwirJqN0EeTOarFTYVj1KnYzo/E94ayqGOcFZOs7hY+8bjzNASBOUdFznr5fhbYKNrFZ9LYR1hw0CQ==;24:eKSD0vMo/lUcHbT2EgYxRZ3Z1F1nJQaWN607zFKyZbbtbyeR7lhyPZnNK5h1ckz3n713Jb9mIeGKYKlLrAgsvpIOe0b0C0kZvIOWi3+yrFY=;20:JuSMNzNsX9PXrx3vGg/EoSusOylysIi/KycCAM0MBhMNw17zN/lqhO3tYllfklBQTZA7bWxYt1KDTYDVIO+mNQ== SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: ezchip.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 07 Aug 2015 00:48:54.0124 (UTC) X-MS-Exchange-CrossTenant-Id: 0fc16e0a-3cd3-4092-8b2f-0a42cff122c3 X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=0fc16e0a-3cd3-4092-8b2f-0a42cff122c3;Ip=[12.216.194.146];Helo=[ld-1.internal.tilera.com] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM2PR02MB0771 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1523 Lines: 37 In principle, including the GNU hash can allow libc to avoid calculating SysV hashes at all. Signed-off-by: Chris Metcalf --- arch/tile/kernel/vdso/Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/tile/kernel/vdso/Makefile b/arch/tile/kernel/vdso/Makefile index a025f63d54cd..c54fff37b5ff 100644 --- a/arch/tile/kernel/vdso/Makefile +++ b/arch/tile/kernel/vdso/Makefile @@ -54,7 +54,7 @@ $(obj)/built-in.o: $(obj)/vdso-syms.o $(obj)/built-in.o: ld_flags += -R $(obj)/vdso-syms.o SYSCFLAGS_vdso.so.dbg = -shared -s -Wl,-soname=linux-vdso.so.1 \ - $(call cc-ldoption, -Wl$(comma)--hash-style=sysv) + $(call cc-ldoption, -Wl$(comma)--hash-style=both) SYSCFLAGS_vdso_syms.o = -r $(obj)/vdso-syms.o: $(src)/vdso.lds $(obj)/vrt_sigreturn.o FORCE $(call if_changed,vdsold) @@ -113,6 +113,6 @@ $(obj)/vrt_sigreturn32.o: $(obj)/vrt_sigreturn.S $(obj)/vdso32.o: $(obj)/vdso32.so SYSCFLAGS_vdso32.so.dbg = -m32 -shared -s -Wl,-soname=linux-vdso32.so.1 \ - $(call cc-ldoption, -Wl$(comma)--hash-style=sysv) + $(call cc-ldoption, -Wl$(comma)--hash-style=both) $(obj)/vdso32.so.dbg: $(src)/vdso.lds $(obj-vdso32) $(call if_changed,vdsold) -- 2.1.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/