[U-Boot] [PATCH v1] sandbox: Build with -fPIC

Bin Meng bmeng.cn at gmail.com
Mon Sep 3 08:56:47 UTC 2018


Hi Andy,

On Mon, Sep 3, 2018 at 4:33 PM Andy Shevchenko
<andriy.shevchenko at linux.intel.com> wrote:
>
> Sandbox is not a real bootloader and it does require
> a position independent code to be supported.
>
> Thus, build it with -fPIC explicitly.
>
> Fixes: 16940f720f9b ("Makefile: Don't generate position independent code")
> Signed-off-by: Andy Shevchenko <andriy.shevchenko at linux.intel.com>
> Reported-by: Simon Glass <sjg at chromium.org>
> ---
>  arch/sandbox/config.mk | 1 +
>  1 file changed, 1 insertion(+)

This patch does not apply on top of u-boot/master. Can you please rebase?

Manually applied the changes, and tested Sandbox on my Ubuntu 16.04
machine, although it does not expose the issue that Simon was seeing
on 18.04.

FWIW

Tested-by: Bin Meng <bmeng.cn at gmail.com>

Regards,
Bin


More information about the U-Boot mailing list