
On Tue, Nov 22, 2022 at 01:09:55PM -0800, Tony Dinh wrote:
Resend to include the mailing list!
Tony
On Tue, Nov 22, 2022 at 11:58 AM Tony Dinh mibodhi@gmail.com wrote:
Hi Tom,
On Tue, Nov 22, 2022 at 9:32 AM Tom Rini trini@konsulko.com wrote:
With gcc-12.2 we now get: lib/zlib/inflate.c:360: undefined reference to `__gnu_thumb1_case_si' when building this platform. This seems like some odd problem with LTO and Thumb, but since the platform continues to link, I assume it's within size constraints, so lets just disable LTO for now.
We don't have a hard size constraint for this board. Thumb and LTO were to help keep the image 512K or less (by convention, for some downstream scripts).
Ah, well, uh-oh. Then we needed to add: CONFIG_HAS_BOARD_SIZE_LIMIT=y CONFIG_BOARD_SIZE_LIMIT=524288 to the config. Which is fine now, but without both LTO and thumb, we now are too big. So this means digging harder at that error message. Which in turn shows that 806f86bd826e ("arm: lib: Import Thumb1 functions") is where we imported the __gnu_thumb1_case_* functions we have now, and need to do similar work to import (and then do the follow-up improvements to) __gnu_thumb1_case_si. Can you please take a look at that? FWIW, the gcc-12.2.0 toolchain I'm using is just https://mirrors.edge.kernel.org/pub/tools/crosstool/files/bin/x86_64/12.2.0/...