summaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorAhmad Fatoum <ahmad@a3f.at>2021-02-23 08:24:27 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2021-03-17 09:29:33 +0100
commit18e0d8bb177d6fe70b79a97c3bbe25b7cf6ba864 (patch)
tree006b5426c10860c8939bd2d9597e6b4421f53da0 /arch
parenta1c1b4353c261d427b7a0d88ceccd61718f2031c (diff)
downloadbarebox-18e0d8bb177d6fe70b79a97c3bbe25b7cf6ba864.tar.gz
barebox-18e0d8bb177d6fe70b79a97c3bbe25b7cf6ba864.tar.xz
kbuild: add '-fcf-protection=none' to barebox build options
Ubuntu 19.10 enables this by default for x86 architectures. The option instructs the compiler to generate special nop instruction at all places where execution may jump to. This not only means the incoming setjmp implementations will need to be adjusted[1], but in case the option is extended to expose similar features of other microarches, this could lead to breakages there with newer compilers. Only safe way to use it seems to disable it wholesale and enable it selectively for platforms that are aware of it. So do the disabling part. [1]: https://github.com/ipxe/ipxe/commit/e8393c372 Signed-off-by: Ahmad Fatoum <ahmad@a3f.at> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'arch')
0 files changed, 0 insertions, 0 deletions