Attention is currently required from: Jérémy Compostella, Karthik Ramasubramanian, Martin L Roth, Yu-Ping Wu.
Arthur Heymans has posted comments on this change by Yu-Ping Wu. ( https://review.coreboot.org/c/coreboot/+/83594?usp=email )
Change subject: arch/x86/Kconfig: Stop building ARM verstage with clang ......................................................................
Patch Set 1:
(1 comment)
Commit Message:
https://review.coreboot.org/c/coreboot/+/83594/comment/dbf2de62_013ebb5e?usp... : PS1, Line 9: We have never intended to build ARM verstage with clang (see CB:69701).
The moment we try to pull in CMOS related support into ARM/PSP verstage (CB:83495), we are running out of space in PSP SRAM i.e. text, data and bss sections together are going beyond their allocated range in psp_verstage memlayout. This is happening only with clang. GCC builds fine.
I see. I don't think removing clang support for most AMD platforms is the right approach here. I'm working on LTO which should reduce the size. In the mean time I noticed that using -Oz instead of -Os with clang reduces the verstage of a few Kb which should solve your issues. I suggest adding the CFLAG for just the ARM verstage for AMD in combination with clang as a temporary workaround.