On Sun, Jul 29, 2018 at 3:09 PM, Heinrich Schuchardt <xypron.g...@gmx.de> wrote:
> On 07/29/2018 02:40 AM, Bin Meng wrote:

> Ubuntu Cosmic has gcc 8.2. Setting up a virtual machine with
> virt-manager is quite easy.

Can you check if output of `gcc -v` has --enable-default-pie?
If so (I bet it is the case), can you try the following patch (sorry,
it's mangled, needs manual apply)

--- a/Makefile
+++ b/Makefile
@@ -371,6 +371,7 @@ KBUILD_CPPFLAGS := -D__KERNEL__ -D__UBOOT__

KBUILD_CFLAGS   := -Wall -Wstrict-prototypes \
                  -Wno-format-security \
+                  -fno-pie \
                  -fno-builtin -ffreestanding $(CSTD_FLAG)
KBUILD_CFLAGS  += -fshort-wchar
KBUILD_AFLAGS   := -D__ASSEMBLY__

P.S. I have no time right now to test this myself though.

-- 
With Best Regards,
Andy Shevchenko
_______________________________________________
U-Boot mailing list
U-Boot@lists.denx.de
https://lists.denx.de/listinfo/u-boot

Reply via email to