Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [BUG] boot/arm-trusted-firmware: Stack protection setting doesn't work
@ 2022-02-06  0:07 Daniil Stas
  2022-02-06 18:43 ` Baruch Siach via buildroot
  0 siblings, 1 reply; 3+ messages in thread
From: Daniil Stas @ 2022-02-06  0:07 UTC (permalink / raw)
  To: buildroot; +Cc: Sergey Matyukevich, Thomas Petazzoni

The bug was introduced in commit ccac9a5bbb
("boot/arm-trusted-firmware: don't force ENABLE_STACK_PROTECTOR").

In this commit the ENABLE_STACK_PROTECTOR option was moved from make
arguments to the environment. But this value gets overwritten in
make_helpers/defaults.mk (and platform specific makefiles) before it
gets handled in the lib/stack_protector/stack_protector.mk.
So setting it via environment doesn't work.

You can check it, for example, if you compile TF-A for stm32mp157a_dk1
platform, and then check if bl32/stack_protector.o file is
built.
It gets built only with commit ccac9a5bbb being reverted.
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2022-02-06 20:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-02-06  0:07 [Buildroot] [BUG] boot/arm-trusted-firmware: Stack protection setting doesn't work Daniil Stas
2022-02-06 18:43 ` Baruch Siach via buildroot
2022-02-06 20:47   ` Daniil Stas

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox