Message ID | 20171204212832.130100-14-sjg@chromium.org |
---|---|
State | Superseded |
Delegated to: | Alexander Graf |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=google.com header.i=@google.com header.b="JB/Dl9Ra"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3yrJ993cCSz9s7f for <incoming@patchwork.ozlabs.org>; Tue, 5 Dec 2017 08:36:29 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 394B8C2207D; Mon, 4 Dec 2017 21:31:04 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 28A6DC21DD9; Mon, 4 Dec 2017 21:29:23 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 5FCCBC21DD9; Mon, 4 Dec 2017 21:28:57 +0000 (UTC) Received: from mail-it0-f67.google.com (mail-it0-f67.google.com [209.85.214.67]) by lists.denx.de (Postfix) with ESMTPS id B7C42C21DD9 for <u-boot@lists.denx.de>; Mon, 4 Dec 2017 21:28:53 +0000 (UTC) Received: by mail-it0-f67.google.com with SMTP id p139so16385205itb.1 for <u-boot@lists.denx.de>; Mon, 04 Dec 2017 13:28:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=UQDGMePKkuvB/9naL61XtqxIn/Y67TAcdA0XIDqNotQ=; b=JB/Dl9Rau445zwssRXz2leMEtBrZ+RtVjY27l/MeKcQ5NraCvJN1frLS6qk7Qwn9pV D6vBEoaNAbcsIXeMuxakQV8mNrSXYplLsFDUjnpBST1M21HhzykSDxUj17OVcc+RC0vL YnMU4d0lC+FICvTSgPB83ckYF4z3VNgwu83QWFCBA2eAvZd0CHp4YI6V1bjJs8BytsWE Ronx6lroFm8d0vuSgytam0IrB7ZKKn4rzxW80mvqrGgi4xH201q/iweyR8vUu+z+iEuQ FfzwAYixl3tDB1K50H9IbhuTsidFUd3OZJPChkLAAQw7/j3AH8gzrgqEwuefVN5ksgPg DRXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=UQDGMePKkuvB/9naL61XtqxIn/Y67TAcdA0XIDqNotQ=; b=ryTDW5jNqa51EyhVQBRnsSLttN6t18Ylhh2bKn+gsqoRufXzq1vPN02cBL5ZPf0YWN V13BWCODuYLZVCR4KTP16RLssY01m4dPn1pp5jLwDp8bPeuP0/fXP3DA4vkfN2rirfCf L4Lqw983SidIeNCOlpU4ah5Mkz/dW2CYDcoAoRf2IgHR9MYtSntwpIiL034pk+GPFFtR 1kf7x16YgoKT/roPrsPufYwa/tyLvJahMuTaBhgPITuM74AjeD/BvSLhE8r8ReUpNqp1 kaBWGZifIkWhfnenUTU4lsgT6Xlr2bHAzvCyQK62MJw0oqPMTTvMws3aoJM4jw3NQm1y t2EQ== X-Gm-Message-State: AJaThX4iWgfc4iq+QKa8R42jqVgr/be0OC45RxoW8R3kWKWRxZrhvZAP 3Sm4MBSLoEHQYp6eD9Oo3seRRw== X-Google-Smtp-Source: AGs4zMae7IdO6vMn/xB6WNlJOIy7a7UaxONOosYFKvwYaXK8p1+g8z5GOfhf5ziAQ3XwXE9No5YSgw== X-Received: by 10.36.77.143 with SMTP id l137mr15425150itb.50.1512422932274; Mon, 04 Dec 2017 13:28:52 -0800 (PST) Received: from kiwi.bld.corp.google.com ([100.67.80.24]) by smtp.gmail.com with ESMTPSA id j185sm4582868itd.2.2017.12.04.13.28.51 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 04 Dec 2017 13:28:51 -0800 (PST) Received: by kiwi.bld.corp.google.com (Postfix, from userid 121222) id 5DC7B143C41; Mon, 4 Dec 2017 14:28:50 -0700 (MST) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Date: Mon, 4 Dec 2017 14:28:29 -0700 Message-Id: <20171204212832.130100-14-sjg@chromium.org> X-Mailer: git-send-email 2.15.0.531.g2ccb3012c9-goog In-Reply-To: <20171204212832.130100-1-sjg@chromium.org> References: <20171204212832.130100-1-sjg@chromium.org> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Alexander Graf <agraf@suse.de> Subject: [U-Boot] [PATCH v2 13/16] efi: sandbox: Add relocation constants X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
efi: Enable basic sandbox support for EFI loader
|
expand
|
diff --git a/lib/efi_loader/efi_runtime.c b/lib/efi_loader/efi_runtime.c index 8104e08c46..468dc12565 100644 --- a/lib/efi_loader/efi_runtime.c +++ b/lib/efi_loader/efi_runtime.c @@ -48,6 +48,9 @@ static efi_status_t __efi_runtime EFIAPI efi_invalid_parameter(void); #include <asm/elf.h> #define R_RELATIVE R_386_RELATIVE #define R_MASK 0xffULL +#elif defined(CONFIG_SANDBOX) +#define R_RELATIVE 8 +#define R_MASK 0xffffffffULL #else #error Need to add relocation awareness #endif
Add these so that we can build the EFI loader for sandbox. The values are for x86_64 so potentially bogus. But we don't support relocation within sandbox anyway. Signed-off-by: Simon Glass <sjg@chromium.org> --- Changes in v2: None lib/efi_loader/efi_runtime.c | 3 +++ 1 file changed, 3 insertions(+)