Re: [U-Boot] [PATCH 2/2] arm: config: enforce -fno-pic for SPL and normal U-Boot

2017-07-04 Thread Tom Rini
...@aribaud.net; u- > > b...@lists.denx.de > > Subject: Re: [U-Boot] [PATCH 2/2] arm: config: enforce -fno-pic for SPL and > > normal U-Boot > > > > On Tue, Jul 04, 2017 at 03:12:54AM +, Peng Fan wrote: > > > > > > > > > > -Origina

Re: [U-Boot] [PATCH 2/2] arm: config: enforce -fno-pic for SPL and normal U-Boot

2017-07-04 Thread Peng Fan
gt; > To: Peng Fan > > > Cc: Simon Glass ; Philipp Tomsich > > > ; albert.u.b...@aribaud.net; > > > u- b...@lists.denx.de > > > Subject: Re: [U-Boot] [PATCH 2/2] arm: config: enforce -fno-pic for > > > SPL and normal U-Boot > > > > > >

Re: [U-Boot] [PATCH 2/2] arm: config: enforce -fno-pic for SPL and normal U-Boot

2017-07-04 Thread Tom Rini
...@aribaud.net; u- > > b...@lists.denx.de > > Subject: Re: [U-Boot] [PATCH 2/2] arm: config: enforce -fno-pic for SPL and > > normal U-Boot > > > > On Tue, Jul 04, 2017 at 01:09:36AM +, Peng Fan wrote: > > > Hi Tom, > > > > > > > ---

Re: [U-Boot] [PATCH 2/2] arm: config: enforce -fno-pic for SPL and normal U-Boot

2017-07-03 Thread J. William Campbell
-boot@lists.denx.de Subject: Re: [U-Boot] [PATCH 2/2] arm: config: enforce -fno-pic for SPL and normal U-Boot On Mon, Jul 03, 2017 at 09:14:08PM +0800, Peng Fan wrote: If not pass -fno-pic to toolchains, some toolchains may generate .got and .got.plt sections, but when generate binaries, we did not

Re: [U-Boot] [PATCH 2/2] arm: config: enforce -fno-pic for SPL and normal U-Boot

2017-07-03 Thread Peng Fan
17 AM > > > To: Peng Fan ; Simon Glass ; > > > Philipp Tomsich > > > Cc: albert.u.b...@aribaud.net; u-boot@lists.denx.de > > > Subject: Re: [U-Boot] [PATCH 2/2] arm: config: enforce -fno-pic for > > > SPL and normal U-Boot > > > > > > O

Re: [U-Boot] [PATCH 2/2] arm: config: enforce -fno-pic for SPL and normal U-Boot

2017-07-03 Thread Tom Rini
> Cc: albert.u.b...@aribaud.net; u-boot@lists.denx.de > > Subject: Re: [U-Boot] [PATCH 2/2] arm: config: enforce -fno-pic for SPL and > > normal U-Boot > > > > On Mon, Jul 03, 2017 at 09:14:08PM +0800, Peng Fan wrote: > > > > > If not pass -fno-pic to toolchains,

Re: [U-Boot] [PATCH 2/2] arm: config: enforce -fno-pic for SPL and normal U-Boot

2017-07-03 Thread Peng Fan
Hi Tom, > -Original Message- > From: Tom Rini [mailto:tr...@konsulko.com] > Sent: Tuesday, July 04, 2017 12:17 AM > To: Peng Fan ; Simon Glass ; Philipp > Tomsich > Cc: albert.u.b...@aribaud.net; u-boot@lists.denx.de > Subject: Re: [U-Boot] [PATCH 2/2] arm: config:

Re: [U-Boot] [PATCH 2/2] arm: config: enforce -fno-pic for SPL and normal U-Boot

2017-07-03 Thread Tom Rini
On Mon, Jul 03, 2017 at 09:14:08PM +0800, Peng Fan wrote: > If not pass -fno-pic to toolchains, some toolchains may generate > .got and .got.plt sections, but when generate binaries, we > did not take .got and .got.plt into consideration, then > SPL or normal U-Boot boot failure because image corr

[U-Boot] [PATCH 2/2] arm: config: enforce -fno-pic for SPL and normal U-Boot

2017-07-03 Thread Peng Fan
If not pass -fno-pic to toolchains, some toolchains may generate .got and .got.plt sections, but when generate binaries, we did not take .got and .got.plt into consideration, then SPL or normal U-Boot boot failure because image corrupted. Need to pass -fno-pic to disable generating .got and .got.p