[Buildroot] [PATCH] trousers: disable pie option on ARC

Alexey Brodkin Alexey.Brodkin at synopsys.com
Fri Jan 15 13:56:07 UTC 2016


Hi Thomas, Lada,

On Fri, 2016-01-15 at 14:33 +0100, Thomas Petazzoni wrote:
> Dear Lada Trimasova,
> 
> On Fri, 15 Jan 2016 15:21:48 +0300, Lada Trimasova wrote:
> > ARC gcc understands "-pie" option and attempts to generate PIE
> > binaries as of today PIE is not really supported for user-space
> > applications. So we provide option which can make relro and pie usage
> > optional and disable PIE detection if building for ARC. Also AUTORECONF
> > option should be added because of modified configure.in and Makefile.am
> > files.
> > 
> > Signed-off-by: Lada Trimasova <ltrimas at synopsys.com>
> > Cc: Alexey Brodkin <abrodkin at synopsys.com>
> > Cc: Thomas Petazzoni <thomas.petazzoni at free-electrons.com>
> > Cc: Peter Korsgaard <peter at korsgaard.com>

[snip]

> Now that I think of it, what would be even better than adding a new
> config option is to simply test if the compiler is capable of linking a
> simple PIE binary. If the compiler is PIE capable, then trousers would
> use PIE, otherwise not.

I'm afraid that won't work for ARC. That's because simple apps could be
built but as we've seen already more complicated apps will fail to build.
I.e. we need to have an ability to force disable PIE on ARC.

Still check for PIE makes perfect sense but in addition to it we'll
need a way to disable that check and force disable PIE.

-Alexey


More information about the buildroot mailing list