Message ID | 20180618140835.195901-6-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; dmarc=fail (p=none dis=none) header.from=chromium.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 418Xzx5X95z9ryk for <incoming@patchwork.ozlabs.org>; Tue, 19 Jun 2018 00:10:21 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 53731C21E70; Mon, 18 Jun 2018 14:09:37 +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=none 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 6BA0AC21D65; Mon, 18 Jun 2018 14:09:16 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id D27D2C21E70; Mon, 18 Jun 2018 14:08:59 +0000 (UTC) Received: from mail-io0-f201.google.com (mail-io0-f201.google.com [209.85.223.201]) by lists.denx.de (Postfix) with ESMTPS id 8F379C21E42 for <u-boot@lists.denx.de>; Mon, 18 Jun 2018 14:08:55 +0000 (UTC) Received: by mail-io0-f201.google.com with SMTP id g22-v6so13525453ioh.5 for <u-boot@lists.denx.de>; Mon, 18 Jun 2018 07:08:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:date:in-reply-to:message-id :references:subject:from:to:cc; bh=zlzB1tN1en5wawnn0gGLdiT2a1k4+hPppfrpvZi7Sc8=; b=I0jT5wCSoFt9ZKPF8mAeWw/eZ8a/9CvfDeNbbkOtxiEMJ9IZLeb3LL4IvyQTKql3cV rokiHI8oovR1X+icCzgUbSsexGqJ/dlGlI0NfccVv+IxV9pVPNgNG35Ut/jVR+uxsWoc sRx52LJ1ChbaT5LHsvp1k8EcaX0kqmb7A6LrhWjnABN1/HxREdxbyAlBTU9IRNt1caz7 M/ULw0SnbgKveGjEWlAZGGjUEWg5bmpwBPVOZ6TRmUc/jXnBIBOqmmdbh0n5g79X1xPv 8UeiQMMVc6hgIsT8bUh0fSyCsu2y0ztC9lNf+Tcp8HallTSCkgFFN201kOUHp+ELHkql x7lQ== X-Gm-Message-State: APt69E30MveyqbVS3KKXZyV0/6C50J1LGkQqNA3WSNxWIxHrX7t1cojz NhmwukGXlW6xZNgHhnD8lpYQBAE= X-Google-Smtp-Source: ADUXVKJDSRD0EEW0E295nHqSizV0c9hBBPT256qRl1eeDM+eQYK/cRaEgd/dq0Gb7m1lBduKyaWxKjY= MIME-Version: 1.0 X-Received: by 2002:a24:5b02:: with SMTP id g2-v6mr4996880itb.44.1529330934598; Mon, 18 Jun 2018 07:08:54 -0700 (PDT) Date: Mon, 18 Jun 2018 08:08:10 -0600 In-Reply-To: <20180618140835.195901-1-sjg@chromium.org> Message-Id: <20180618140835.195901-6-sjg@chromium.org> References: <20180618140835.195901-1-sjg@chromium.org> X-Mailer: git-send-email 2.18.0.rc1.244.gcf134e6275-goog From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Cc: Andy Shevchenko <andriy.shevchenko@linux.intel.com>, Heinrich Schuchardt <xypron.glpk@gmx.de>, Alexander Graf <agraf@suse.de> Subject: [U-Boot] [PATCH v8 05/30] 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> 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 sandbox support for EFI loader
|
expand
|
diff --git a/lib/efi_loader/efi_runtime.c b/lib/efi_loader/efi_runtime.c index 4874eb602f..10a7878a1c 100644 --- a/lib/efi_loader/efi_runtime.c +++ b/lib/efi_loader/efi_runtime.c @@ -62,6 +62,17 @@ struct dyn_sym { #define R_ABSOLUTE R_RISCV_64 #define SYM_INDEX 32 #endif + +#elif defined(CONFIG_SANDBOX) +/* + * TODO(sjg@chromium.org): Consider providing a way to enable sandbox features + * based on the host architecture + */ +# ifndef __x86_64__ +# warning "sandbox EFI support is only tested on 64-bit x86" +# endif +#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 v8: None Changes in v7: - Drop an unnecessary comment Changes in v6: - Warn about building sandbox EFI support on something other than __x86_64__ Changes in v5: None Changes in v4: None Changes in v3: None Changes in v2: None lib/efi_loader/efi_runtime.c | 11 +++++++++++ 1 file changed, 11 insertions(+)