Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965574Ab3DPWj7 (ORCPT ); Tue, 16 Apr 2013 18:39:59 -0400 Received: from terminus.zytor.com ([198.137.202.10]:49109 "EHLO mail.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965494Ab3DPWj6 (ORCPT ); Tue, 16 Apr 2013 18:39:58 -0400 Message-ID: <516DD323.3050201@zytor.com> Date: Tue, 16 Apr 2013 15:39:31 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130311 Thunderbird/17.0.4 MIME-Version: 1.0 To: Kees Cook CC: LKML , "kernel-hardening@lists.openwall.com" , Thomas Gleixner , Ingo Molnar , "x86@kernel.org" , Jarkko Sakkinen , Matthew Garrett , Matt Fleming , Eric Northup , Dan Rosenberg , Julien Tinnes , Will Drewry Subject: Re: [PATCH 4/6] x86: relocs: build separate 32/64-bit tools References: <1365797627-20874-1-git-send-email-keescook@chromium.org> <1365797627-20874-5-git-send-email-keescook@chromium.org> <516DCEF3.6030803@zytor.com> In-Reply-To: X-Enigmail-Version: 1.5.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 663 Lines: 27 On 04/16/2013 03:38 PM, Kees Cook wrote: >> >> Have simple wrapper files which do: >> >> /* relocs_32.c */ >> #define ELF_BITS 32 >> #include "relocs.c" >> >> /* relocs_64.c */ >> #define ELF_BITS 64 >> #include "relocs.c" > > That's what I did in my first pass, but it seemed even worse to me. I > will go back to this. > Actually, I'm trying to see if I can refactor this into one binary. Hang on a few. -hpa -- 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/