[Buildroot] [PATCH v2 3/4] boot/uboot: pass -mno-fdpic if FDPIC is enabled

Thomas Petazzoni thomas.petazzoni at bootlin.com
Tue Aug 2 22:15:27 UTC 2022


On Tue,  2 Aug 2022 16:21:41 -0400
Ben Wolsieffer <ben.wolsieffer at hefring.com> wrote:

> If the FDPIC ABI is enabled by default in the toolchain, it must be
> explicitly disabled when building U-Boot.

Missing SoB.

Who added -mfdpic by default? Directly the compiler?

If -mfdpic was added by our toolchain wrapper, then the toolchain
wrapper (toolchain/toolchain-wrapper.c) already has a few checks to
avoid adding -fPIE when building the kernel/U-Boot.

Thanks!

Thomas
-- 
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com



More information about the buildroot mailing list