From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andy Shevchenko Date: Mon, 3 Sep 2018 10:57:57 +0300 Subject: [U-Boot] [PATCH v1] Makefile: Don't generate position independent code In-Reply-To: References: <13b1516b08a295dfbbd39f4fbd1f3c42bb233bcc.camel@linux.intel.com> <0bcaf506-03cc-4887-ade1-97159bcede65@gmx.de> <63136c80-ff0b-0d66-4681-b8a9d48db161@gmx.de> <10a683162e30e869736cfd64b4b143a3528c780c.camel@linux.intel.com> Message-ID: <20180903075757.GG11447@smile.fi.intel.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Sun, Sep 02, 2018 at 05:50:24PM -0600, Simon Glass wrote: > Hi, > > On 10 August 2018 at 00:04, Bin Meng wrote: > > On Thu, Aug 9, 2018 at 9:07 PM, Andy Shevchenko > > wrote: > >> On Thu, 2018-08-09 at 14:25 +0200, Heinrich Schuchardt wrote: > >> > >>> I did not test loading of > >>> Linux on x86. > >> > >> For the record I did test this. > >> > > > > Tested-by: Bin Meng > > On QEMU x86 boards (except efi-x86_app_defconfig which is currently broken) > > > > applied to u-boot-x86, thanks! > > This appears to break build sandbox on Ubuntu 18.04 at least (gcc-7.3). Sandbox is not a real bootloader for sure :-) Does the below cure? diff --git a/arch/sandbox/config.mk b/arch/sandbox/config.mk index 5e7077bfe7..4599839791 100644 --- a/arch/sandbox/config.mk +++ b/arch/sandbox/config.mk @@ -3,6 +3,7 @@ PLATFORM_CPPFLAGS += -D__SANDBOX__ -U_FORTIFY_SOURCE PLATFORM_CPPFLAGS += -DCONFIG_ARCH_MAP_SYSMEM +PLATFORM_CPPFLAGS += -fPIC PLATFORM_LIBS += -lrt LDFLAGS_FINAL += --gc-sections > Can we revert it, or do something else stop it from happening with sandbox? > > At present all testing is broken for me. -- With Best Regards, Andy Shevchenko