From patchwork Wed Feb 8 11:55:35 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 93630 Delivered-To: patch@linaro.org Received: by 10.182.3.34 with SMTP id 2csp2703710obz; Wed, 8 Feb 2017 04:27:45 -0800 (PST) X-Received: by 10.84.214.150 with SMTP id j22mr33683222pli.23.1486556865165; Wed, 08 Feb 2017 04:27:45 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a21si6972489pgi.248.2017.02.08.04.27.45; Wed, 08 Feb 2017 04:27:45 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=neutral (body hash did not verify) header.i=@linaro.org; spf=pass (google.com: best guess record for domain of linux-efi-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-efi-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752910AbdBHM1o (ORCPT + 2 others); Wed, 8 Feb 2017 07:27:44 -0500 Received: from mail-wm0-f51.google.com ([74.125.82.51]:33659 "EHLO mail-wm0-f51.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753307AbdBHM1l (ORCPT ); Wed, 8 Feb 2017 07:27:41 -0500 Received: by mail-wm0-f51.google.com with SMTP id t18so49886936wmt.0 for ; Wed, 08 Feb 2017 04:27:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=QdfkNBEiiYaJ5xy2NsClNrboFOb+kCZKahEn/Hd/UY0=; b=Jy/c4O51M2e2UkpHpl5XOFXtlnSb5Ln7JSR2eq3mFHxO6lUyJWAZaR9pQZiZG7ZwkR TM9GtbxP89QtUWbb/F46vGMhqNTHNYUbPZdfp4Wk0tqXuCyCn7QqKeotyHBtWgE7TyDq L+CFlnceuYIDSFdMSbzUuyIqRExoaGzlSOe8A= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=QdfkNBEiiYaJ5xy2NsClNrboFOb+kCZKahEn/Hd/UY0=; b=roegyS9pqzRjMFd0fCAdJCB9Rihnta8D+BJFRF+wEE56XfqSUrFY33+WZQV9LnIzC0 7gEH2tePKIUYip9Vz5V0v6LtEK7+fePMlSUfjiWe1W3itaA4UAh9RDTiyZ6I24EsL35U 2HR8MrV0hF210uhPYz0Drgr8vd8ZMR+kT82r3EL3uJx5aIrKyp9ha7E9xT/l2ZRV5Czn IR6F4oCnYi4qpYediGpcN5psSTEnEEYrvIMuEAG1mEHCZeyfC1ShZg/nc4s6ZdAFsWNO AmrYf7Vi8kM7DahWxEAAMQYfC7d3Rp5TUP8SxaS7jr1Bc1btSrey/aMeiKXH3qUlzju5 QEZw== X-Gm-Message-State: AMke39m9i0C2nYWzIwasifdUMJbzmnCBoOzj1H1+1ynr6P6z6JEusIGan0aWAHj1mYLCpF94 X-Received: by 10.28.170.213 with SMTP id t204mr16328720wme.29.1486554967592; Wed, 08 Feb 2017 03:56:07 -0800 (PST) Received: from localhost.localdomain ([160.169.163.122]) by smtp.gmail.com with ESMTPSA id 123sm2974815wml.6.2017.02.08.03.56.04 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 08 Feb 2017 03:56:06 -0800 (PST) From: Ard Biesheuvel To: linux-efi@vger.kernel.org, linux-arm-kernel@lists.infradead.org, mark.rutland@arm.com, leif.lindholm@linaro.org Cc: catalin.marinas@arm.com, linux@armlinux.org.uk, kernel-hardening@lists.openwall.com, labbott@fedoraproject.org, Ard Biesheuvel Subject: [PATCH v2 02/14] include: pe.h: add some missing definitions Date: Wed, 8 Feb 2017 11:55:35 +0000 Message-Id: <1486554947-3964-3-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1486554947-3964-1-git-send-email-ard.biesheuvel@linaro.org> References: <1486554947-3964-1-git-send-email-ard.biesheuvel@linaro.org> Sender: linux-efi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-efi@vger.kernel.org From: Mark Rutland Add the missing IMAGE_FILE_MACHINE_ARM64 and IMAGE_DEBUG_TYPE_CODEVIEW definitions. We'll need them for the arm64 EFI stub... Signed-off-by: Mark Rutland [ardb: add IMAGE_DEBUG_TYPE_CODEVIEW as well] Signed-off-by: Ard Biesheuvel --- include/linux/pe.h | 3 +++ 1 file changed, 3 insertions(+) -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-efi" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/include/linux/pe.h b/include/linux/pe.h index a8a594117df3..143ce75be5f0 100644 --- a/include/linux/pe.h +++ b/include/linux/pe.h @@ -34,6 +34,7 @@ #define IMAGE_FILE_MACHINE_AMD64 0x8664 #define IMAGE_FILE_MACHINE_ARM 0x01c0 #define IMAGE_FILE_MACHINE_ARMV7 0x01c4 +#define IMAGE_FILE_MACHINE_ARM64 0xaa64 #define IMAGE_FILE_MACHINE_EBC 0x0ebc #define IMAGE_FILE_MACHINE_I386 0x014c #define IMAGE_FILE_MACHINE_IA64 0x0200 @@ -141,6 +142,8 @@ #define IMAGE_SCN_MEM_READ 0x40000000 /* readable */ #define IMAGE_SCN_MEM_WRITE 0x80000000 /* writeable */ +#define IMAGE_DEBUG_TYPE_CODEVIEW 2 + #ifndef __ASSEMBLY__ struct mz_hdr {