
Hi Pali,
On Tue, 25 Apr 2023 at 10:28, Pali Rohár pali@kernel.org wrote:
On Monday 24 April 2023 17:08:32 Simon Glass wrote:
This creates a lot of errors of the form:
`__stack_chk_fail' referenced in section `.text' of ...ltrans.o: defined in discarded section `.text' of common/stackprot.o (symbol from plugin)
This issue should be rather fixed...
Drop LTO for now.
... and until it happens is not CONFIG_LTO for disabling enough?
LTO does not work for more other boards / platforms and it is just _not_ enabled via CONFIG_LTO in those cases...
The thing is, LTO is enabled for sandbox normally (clang and gcc). It is just the MSYS2 platform where there are problems.
I am not sure how to fix it, since I don't know what discarded section it is referring to.
Regards, Simon