[Buildroot] Analysis of build results for 2014-04-20

Thomas Petazzoni thomas.petazzoni at free-electrons.com
Mon Apr 21 11:58:07 UTC 2014


Dear Anton Kolesov,

On Mon, 21 Apr 2014 10:18:53 +0000, Anton Kolesov wrote:

> [AK:] This is a limitation of ARC uClibc port: our crt1.o doesn't support PIE (though it seems simple hello world can be compiled). Our uClibc developer (added to CC) is going to fix this in near future, but he has a lot of other tasks to do right now, so this might not happen immediately.

Why do we need a PIE executable here? As far as I understand, PIC is
mandatory for shared libraries, but PIE for executables is only needed
for security reasons, if you want to randomize the location of
executables in memory, at least in MMU-capable platforms.

So maybe we should just cook a patch to remove -fPIE when building
openswan ? I don't think we build any other package with -fPIE, so why
should openswan be different ?

Best regards,

Thomas
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com


More information about the buildroot mailing list