[{"id":1770083,"web_url":"http://patchwork.ozlabs.org/comment/1770083/","msgid":"<f8f63631-0d2c-cfef-873e-7f6db84f0947@gmx.de>","list_archive_url":null,"date":"2017-09-18T11:13:06","subject":"Re: [U-Boot] [PATCH 13/16] efi: sandbox: Add relocation constants","submitter":{"id":61270,"url":"http://patchwork.ozlabs.org/api/people/61270/","name":"Heinrich Schuchardt","email":"xypron.glpk@gmx.de"},"content":"On 09/18/2017 12:59 AM, Simon Glass wrote:\n> Add these so that we can build the EFI loader for sandbox. The values are\n> for x86_64 so potentially bogus. But we don't support relocation within\n> sandbox anyway.\n> \n> Signed-off-by: Simon Glass <sjg@chromium.org>\n> ---\n> \n>  lib/efi_loader/efi_runtime.c | 3 +++\n>  1 file changed, 3 insertions(+)\n> \n> diff --git a/lib/efi_loader/efi_runtime.c b/lib/efi_loader/efi_runtime.c\n> index ad7f3754bd..8ad1d2fc99 100644\n> --- a/lib/efi_loader/efi_runtime.c\n> +++ b/lib/efi_loader/efi_runtime.c\n> @@ -48,6 +48,9 @@ static efi_status_t __efi_runtime EFIAPI efi_invalid_parameter(void);\n>  #include <asm/elf.h>\n>  #define R_RELATIVE\tR_386_RELATIVE\n>  #define R_MASK\t\t0xffULL\n> +#elif defined(CONFIG_SANDBOX)\n\nFor the sandbox you should make your choice based on the host\narchitecture. I want to be able to work on my armv8 machine.\n\n> +#define R_RELATIVE\t8\n\nYou mean R_X86_64_RELATIVE (defined in arch/x86/include/asm/elf.h)?\n\nBest regards\n\nHeinrich\n\n> +#define R_MASK\t\t0xffffffffULL\n>  #else\n>  #error Need to add relocation awareness\n>  #endif\n>","headers":{"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;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)","Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3xwk011Hgfz9s7G\n\tfor <incoming@patchwork.ozlabs.org>;\n\tMon, 18 Sep 2017 21:13:37 +1000 (AEST)","by lists.denx.de (Postfix, from userid 105)\n\tid E30A3C21DA2; Mon, 18 Sep 2017 11:13:33 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id B2F48C21C57;\n\tMon, 18 Sep 2017 11:13:30 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid CE592C21C57; Mon, 18 Sep 2017 11:13:28 +0000 (UTC)","from mout.gmx.net (mout.gmx.net [212.227.15.18])\n\tby lists.denx.de (Postfix) with ESMTPS id 8501AC21C41\n\tfor <u-boot@lists.denx.de>; Mon, 18 Sep 2017 11:13:28 +0000 (UTC)","from [192.168.123.58] ([84.118.154.110]) by mail.gmx.com (mrgmx002\n\t[212.227.17.190]) with ESMTPSA (Nemesis) id\n\t0LfjlS-1d4ag73JdK-00pOzT; Mon, 18 Sep 2017 13:13:13 +0200"],"X-Spam-Checker-Version":"SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de","X-Spam-Level":"","X-Spam-Status":"No, score=-0.7 required=5.0 tests=FREEMAIL_FROM,\n\tRCVD_IN_DNSWL_LOW,\n\tRCVD_IN_MSPIKE_H2 autolearn=unavailable autolearn_force=no\n\tversion=3.4.0","To":"Simon Glass <sjg@chromium.org>,\n\tU-Boot Mailing List <u-boot@lists.denx.de>","References":"<20170917225927.117917-1-sjg@chromium.org>\n\t<20170917225927.117917-14-sjg@chromium.org>","From":"Heinrich Schuchardt <xypron.glpk@gmx.de>","Message-ID":"<f8f63631-0d2c-cfef-873e-7f6db84f0947@gmx.de>","Date":"Mon, 18 Sep 2017 13:13:06 +0200","User-Agent":"Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101\n\tThunderbird/52.3.0","MIME-Version":"1.0","In-Reply-To":"<20170917225927.117917-14-sjg@chromium.org>","Content-Language":"en-US","X-Provags-ID":"V03:K0:bx99auZCGw5TaaPzt8AltPDAnK+8GZoY/0IfHizVuB4E0ZdJUBb\n\tdo8dfhRb6pIfVhGWU8P1XHQseGIxUvFS+au4VEP7V1hjhPiz9349O4vugJV9y8gK90W5N2f\n\toniNJNVO4KAJKHkh01A41JzyGrChXAuy51zayp73IgmdA7VdPyr9NmDtEZCpBJlI6qyU01F\n\tjUxAJRvLXZ0KjGbSAN9Uw==","X-UI-Out-Filterresults":"notjunk:1; V01:K0:HQus335kz8Q=:FLlIHvzKzBwcL0kI1v4umw\n\t5eLuDRFJ2iyzS569vS4qY1wDyzph00BtTjGe/qs/l3XuxBQD7YzSOTUnN+KoTHvaGe6OWaSr/\n\tSi+ruKgCfE6yKuP3UY+ahzVH9hcC7fTdtPe+raCFGFGqngzUXIlIrOuTBePR80x2RMfsudYP3\n\tbT2inBSXlGLJIUeYcbetlFUSd5a+8UbXakgkiZDATawWne6otCFtrj5U4rMG82tipDB0SxUiM\n\tAGwnNN8pPLeln0ek9fGhnwOhRQgXJoxsr2yz+dDvbQqnvivv2rmfY+EhHP3b01IxBCcyE4MBT\n\thmcdf7vJ9gwhckq8JGTDV64/+ZHAbvLQa2G8Tw9+bvJI1ZAqSvBizKCVgLqwSCzmkfF1F2Yh+\n\t0RgPtoh8oFVFn5gqjzQiWpgsAsgLC8J7mOgixIJ9Y1MO7lmMBu/hfrB6l+6/5RAzNMWgFHhNN\n\t5aT175X1PY0R3lYVYNRU4yEt0OGezHssOBFqWaLPwfqMRhIlfGoWhRLho/xPLM5SB9Qr6pW5h\n\t7+E9miLdoB2Hdyb4USb6sivfCpm44Eu107cnV8jnXHYC5ohB0jl4+yMtgIgu50ynVX6QPtVUB\n\ttW5GuAwiONyYW0fBRCi8CkM00LFCkxF3kFjPNbeXJmNtM7/kROZB01uzjASyOFnzMBi52lt6x\n\t37laFmz/vW7aJxQnDAiJ+/5JU5TnGgMToSd1SSnH+oaAc0KN/Zowi2TfCAvX5SfAB1LeXikNR\n\tNRtKPts3LUCwkkVb5Zr8tOg1P1rzh0h6wdahd6+i6bnAnblVNJP59tFq8/B7C7dYQxZx6KoKM\n\tbdThR5ousiCtEZnXZPDZblMGUhZvvH4gPyWW0A1DSpRLYjPMDE=","Cc":"Heinrich Schuchardt <xypron.glpk@gmx.de>,\n\tAndy Shevchenko <andriy.shevchenko@linux.intel.com>","Subject":"Re: [U-Boot] [PATCH 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>,\n\t<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>,\n\t<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>"}},{"id":1815663,"web_url":"http://patchwork.ozlabs.org/comment/1815663/","msgid":"<CAPnjgZ2wccFOZH8h=bWSmJ5Q5qeY9tMBYjXi05yiqfFQ=BrW8g@mail.gmail.com>","list_archive_url":null,"date":"2017-12-04T22:45:13","subject":"Re: [U-Boot] [PATCH 13/16] efi: sandbox: Add relocation constants","submitter":{"id":6170,"url":"http://patchwork.ozlabs.org/api/people/6170/","name":"Simon Glass","email":"sjg@chromium.org"},"content":"Hi Heinrich,\n\nOn 18 September 2017 at 05:13, Heinrich Schuchardt <xypron.glpk@gmx.de> wrote:\n> On 09/18/2017 12:59 AM, Simon Glass wrote:\n>> Add these so that we can build the EFI loader for sandbox. The values are\n>> for x86_64 so potentially bogus. But we don't support relocation within\n>> sandbox anyway.\n>>\n>> Signed-off-by: Simon Glass <sjg@chromium.org>\n>> ---\n>>\n>>  lib/efi_loader/efi_runtime.c | 3 +++\n>>  1 file changed, 3 insertions(+)\n>>\n>> diff --git a/lib/efi_loader/efi_runtime.c b/lib/efi_loader/efi_runtime.c\n>> index ad7f3754bd..8ad1d2fc99 100644\n>> --- a/lib/efi_loader/efi_runtime.c\n>> +++ b/lib/efi_loader/efi_runtime.c\n>> @@ -48,6 +48,9 @@ static efi_status_t __efi_runtime EFIAPI efi_invalid_parameter(void);\n>>  #include <asm/elf.h>\n>>  #define R_RELATIVE   R_386_RELATIVE\n>>  #define R_MASK               0xffULL\n>> +#elif defined(CONFIG_SANDBOX)\n>\n> For the sandbox you should make your choice based on the host\n> architecture. I want to be able to work on my armv8 machine.\n\nSure, but I'm not sure how to do that. We need to know the host and\nadjust EFI accordingly I think. Perhaps something to do later.\n\n>\n>> +#define R_RELATIVE   8\n>\n> You mean R_X86_64_RELATIVE (defined in arch/x86/include/asm/elf.h)?\n\nRegards,\nSimon","headers":{"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;\n\tspf=none (mailfrom) smtp.mailfrom=lists.denx.de\n\t(client-ip=81.169.180.215; helo=lists.denx.de;\n\tenvelope-from=u-boot-bounces@lists.denx.de;\n\treceiver=<UNKNOWN>)","ozlabs.org;\n\tdkim=fail reason=\"signature verification failed\" (2048-bit key;\n\tunprotected) header.d=google.com header.i=@google.com\n\theader.b=\"KA1mSJLQ\"; \n\tdkim=fail reason=\"signature verification failed\" (1024-bit key;\n\tunprotected) header.d=chromium.org header.i=@chromium.org\n\theader.b=\"U2vSA+Xf\"; dkim-atps=neutral"],"Received":["from lists.denx.de (dione.denx.de [81.169.180.215])\n\tby ozlabs.org (Postfix) with ESMTP id 3yrKlc0Sx8z9s74\n\tfor <incoming@patchwork.ozlabs.org>;\n\tTue,  5 Dec 2017 09:47:55 +1100 (AEDT)","by lists.denx.de (Postfix, from userid 105)\n\tid 7D7E6C22009; Mon,  4 Dec 2017 22:46:28 +0000 (UTC)","from lists.denx.de (localhost [IPv6:::1])\n\tby lists.denx.de (Postfix) with ESMTP id 88D46C2207D;\n\tMon,  4 Dec 2017 22:46:11 +0000 (UTC)","by lists.denx.de (Postfix, from userid 105)\n\tid 05A57C2209B; Mon,  4 Dec 2017 22:45:39 +0000 (UTC)","from mail-qt0-f196.google.com (mail-qt0-f196.google.com\n\t[209.85.216.196])\n\tby lists.denx.de (Postfix) with ESMTPS id 0DDD3C21DAA\n\tfor <u-boot@lists.denx.de>; Mon,  4 Dec 2017 22:45:36 +0000 (UTC)","by mail-qt0-f196.google.com with SMTP id r39so24844191qtr.13\n\tfor <u-boot@lists.denx.de>; Mon, 04 Dec 2017 14:45:36 -0800 (PST)","by 10.140.100.167 with HTTP; Mon, 4 Dec 2017 14:45:13 -0800 (PST)"],"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,\n\tRCVD_IN_MSPIKE_WL,\n\tT_DKIM_INVALID autolearn=unavailable autolearn_force=no\n\tversion=3.4.0","DKIM-Signature":["v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com;\n\ts=20161025; \n\th=mime-version:sender:in-reply-to:references:from:date:message-id\n\t:subject:to:cc;\n\tbh=KLUVUSYXkWUWWN2GkFOuYEswOwXEaeNjZ6XnMftJxVo=;\n\tb=KA1mSJLQP59MzMyVAl1XKsFVyfUrfRhOiP88ua5mAqaupkOqWTtDfyISXhWEUf0KKZ\n\tlG++IeE5KsAqukLIkK7abXDWNAawdkoGKKlAd4P5/e3Lf0TlEU5TubCofslH9JfuardR\n\tmTJEqqUkr3EacpsvzYzHu4YWWgTWEtCbA107LhuL2Z96Vov++B1oE7p6q7ebCZsTOUBr\n\tNx4cNaXVWOU+tDfz9gUEAsoL5NWYlEjd202MH6QHqbHCebhIt1SdvQEqz81ZynA1xLY2\n\t35/fae/8i18T18N/OasABHEaa3COW7gZdgSfoznFp/JLkGtFBsaLr2R2xjhGbFTGayiM\n\tttPQ==","v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org;\n\ts=google; \n\th=mime-version:sender:in-reply-to:references:from:date:message-id\n\t:subject:to:cc;\n\tbh=KLUVUSYXkWUWWN2GkFOuYEswOwXEaeNjZ6XnMftJxVo=;\n\tb=U2vSA+XfDffBJSPcg51JeENkzB7DewMDOm+d56t6xwNX59EixgMPKgNpP641zrZl2q\n\tejv0KUBk4cgjwN6c2USfRe73P8Yavd/oYMyYP3IuD+Wj7Po9gxJnzjkg7k7We9csWLQI\n\t0avZsw2oNq60/gPY9shEFIirmZkSNnxdRsJ04="],"X-Google-DKIM-Signature":"v=1; a=rsa-sha256; c=relaxed/relaxed;\n\td=1e100.net; s=20161025;\n\th=x-gm-message-state:mime-version:sender:in-reply-to:references:from\n\t:date:message-id:subject:to:cc;\n\tbh=KLUVUSYXkWUWWN2GkFOuYEswOwXEaeNjZ6XnMftJxVo=;\n\tb=QCXDSEsZeucEXo4coYuRlpqUBG5nnEUTEcyLlylYu/MLHnbq4vhugUMwUlubO4s8Qv\n\tzw7/mSKG279E3K2+glpJC9FBDf9OPeGwc2fd9sfqCjY/G3gokU2Wyg72h9bI/BeVPt1t\n\tXTeCZokCVDPNZ/IzvF3qcR0D1ccAbyCVZjVdXH7oIX8a+tDEFyOS+OP1PTFXYASaCQKr\n\tpK1jkmod16Rq/HwtalXGulU+1/OwVMB0Li2s396gHBQSvgynT4NygNpy/jiVx/7m8XIc\n\tImyFigN36qi5wXbtHLNWe6fmkV6O5FTiaBI7ERSdTBtXFEDz2Tmd8c5cIUypP3J3wJlL\n\t8tqQ==","X-Gm-Message-State":"AKGB3mKOnW6Aavb31qKfZr9ESKxH2Lx3OvSkuSq04cRgtiGb2JIurrWY\n\t3kArTGI4U3RV+Pl5VYiR+lfMgAuS9AYMob/vXyHzrw==","X-Google-Smtp-Source":"AGs4zMZ0jOYYR/rOZxh1/CeCcJWcIEO5HvRXVwp+2FkiAhaQg6u/ZZA7aDAVtzZ2qMGV6C1HVaZtLfN2PM/jTOHBx3M=","X-Received":"by 10.200.54.93 with SMTP id n29mr317929qtb.179.1512427534659;\n\tMon, 04 Dec 2017 14:45:34 -0800 (PST)","MIME-Version":"1.0","In-Reply-To":"<f8f63631-0d2c-cfef-873e-7f6db84f0947@gmx.de>","References":"<20170917225927.117917-1-sjg@chromium.org>\n\t<20170917225927.117917-14-sjg@chromium.org>\n\t<f8f63631-0d2c-cfef-873e-7f6db84f0947@gmx.de>","From":"Simon Glass <sjg@chromium.org>","Date":"Mon, 4 Dec 2017 15:45:13 -0700","X-Google-Sender-Auth":"Gz5PVItbUc2rkDbx7Ddf0HHQ-h4","Message-ID":"<CAPnjgZ2wccFOZH8h=bWSmJ5Q5qeY9tMBYjXi05yiqfFQ=BrW8g@mail.gmail.com>","To":"Heinrich Schuchardt <xypron.glpk@gmx.de>","Cc":"U-Boot Mailing List <u-boot@lists.denx.de>,\n\tAlexander Graf <agraf@suse.de>, \n\tAndy Shevchenko <andriy.shevchenko@linux.intel.com>","Subject":"Re: [U-Boot] [PATCH 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>,\n\t<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>,\n\t<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>"}}]