Message ID | 20180618152315.34233-3-agraf@suse.de |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:a2e:970d:0:0:0:0:0 with SMTP id r13-v6csp4085630lji; Mon, 18 Jun 2018 08:27:38 -0700 (PDT) X-Google-Smtp-Source: ADUXVKKk/LKxRtfSi/kCD19xAw92A0wa+oJ/FoiZm0jC/k7bMOzKXow0KPwGOKpJ5NGZUpubSDnr X-Received: by 2002:a50:cb0d:: with SMTP id g13-v6mr11526170edi.81.1529335658553; Mon, 18 Jun 2018 08:27:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529335658; cv=none; d=google.com; s=arc-20160816; b=AUZ9eN1vhxocVnoOR3+3BkslkExCmHdGPNd/+Xe308kM2ekRqi7x/b7QOpgEDRZGRj oAIQcbz+x3fOzmijpLgjZKXghTUN45MflGBEWHR0xyWYXvfF/6iCX0KOXg1Nkh8x5zPF yFMjorY4Vpay2fS2TEs8hnRy+SXhdojWVZdkq7ZZkGZyimlNgizoYo77UsRsJQHDprMP EQSQN5miWort5MWfatnqmkPj5i6Y4D3tf3QBHg4RKu8QUyWS812PmptqJXooC1fPR7gV HBWpP4+5pGgTXFId/DJ6zhYR3qegt7cEu0vzBMp2SRpi8BWRsJ7O2rFyc471XKlCEfnD YOLA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:content-transfer-encoding:mime-version :list-subscribe:list-help:list-post:list-archive:list-unsubscribe :list-id:precedence:subject:cc:references:in-reply-to:message-id :date:to:from:arc-authentication-results; bh=97sDLf9D+o4CHkrAB/PKmm4T2GTnP3HHG/6/Xqm11Qo=; b=N+Ohnnv47IVQjQkxMppRjJOEIEDSfjXSh6rSzrVntWajkJU5gknySF6hn6B5nfh8ol ewa1c3N/AdqN8IL1Pr6TA9esQaS9G4uXZUacpZjkAukRZHQ3gJlpT7n9Rr4rgI5G19C3 BIhVmf5ZiMoY7tsm8M8q1sdqsHgOTFFisJ53eVO68o9WWgaJlwgJR6fJh7utxhuPPjGP ag7/URV5uNUgTiXABuV5RtxwURZ3pxsGwCtJ0HxrVahdkpR0NZGX942fGMCx8TGMv5Z0 aDvZE5vn7Ex45+EKgByusPNTIu2cNT0JQQKxogZWegZAeSg0H9KD3YmrCmvDKeZhZA6v tQ7w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Return-Path: <u-boot-bounces@lists.denx.de> Received: from lists.denx.de (dione.denx.de. [81.169.180.215]) by mx.google.com with ESMTP id a8-v6si7167746edr.122.2018.06.18.08.27.38; Mon, 18 Jun 2018 08:27:38 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) client-ip=81.169.180.215; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of u-boot-bounces@lists.denx.de designates 81.169.180.215 as permitted sender) smtp.mailfrom=u-boot-bounces@lists.denx.de Received: by lists.denx.de (Postfix, from userid 105) id 2739AC21EFF; Mon, 18 Jun 2018 15:25:00 +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 16E74C21E63; Mon, 18 Jun 2018 15:23:23 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 4F92BC21E38; Mon, 18 Jun 2018 15:23:17 +0000 (UTC) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by lists.denx.de (Postfix) with ESMTPS id 964E0C21DED for <u-boot@lists.denx.de>; Mon, 18 Jun 2018 15:23:17 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext-too.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id BC3BAAF64; Mon, 18 Jun 2018 15:23:16 +0000 (UTC) From: Alexander Graf <agraf@suse.de> To: u-boot@lists.denx.de Date: Mon, 18 Jun 2018 17:22:56 +0200 Message-Id: <20180618152315.34233-3-agraf@suse.de> X-Mailer: git-send-email 2.12.3 In-Reply-To: <20180618152315.34233-1-agraf@suse.de> References: <20180618152315.34233-1-agraf@suse.de> Cc: Heinrich Schuchardt <xypron.glpk@gmx.de>, Andy Shevchenko <andriy.shevchenko@linux.intel.com> Subject: [U-Boot] [PATCH v4 02/21] 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 |
sandbox: efi_loader support
|
expand
|
diff --git a/lib/efi_loader/efi_runtime.c b/lib/efi_loader/efi_runtime.c index 4874eb602f..388dfb9840 100644 --- a/lib/efi_loader/efi_runtime.c +++ b/lib/efi_loader/efi_runtime.c @@ -62,6 +62,18 @@ struct dyn_sym { #define R_ABSOLUTE R_RISCV_64 #define SYM_INDEX 32 #endif + +/* For sandbox we only support 64-bit x86 at present */ +#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