[Buildroot] musl static pie

Arvid Picciani aep at exys.org
Mon Nov 13 13:31:31 UTC 2017


Hi,

musl does support static pie, which we need for implement linking with
korhal bolter.
Is there any general resistance against implement that?

as far as i understand this requires adding a .spec file, since gcc does
not natively understand static pie yet. A different crt needs to be added
for self-relocation without an ldso.
https://gcc.gnu.org/ml/gcc-patches/2017-11/msg00247.html

it would also involve adding -fPIC to TARGET_CFLAGS.

i'd suggest adding it as Build options -> position independant executables

but behind !BR2_STATIC_LIBS || BR2_TOOLCHAIN_USES_MUSL


/b/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/buildroot/attachments/20171113/9a67e617/attachment.html>


More information about the buildroot mailing list