https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106671
--- Comment #18 from Mark Brown ---
It's section placement stuff that's triggering this. You will also be able to
build a larger kernel if you try, though I'm not sure that's practical.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106671
--- Comment #15 from Mark Brown ---
The kernel module loader simply does not insert veneers at present, and there
were some implementation concerns IIRC.
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106671
--- Comment #13 from Mark Brown ---
The kernel hasn't got any problem with BTI as far as I am aware - when built
with clang we run the kernel with BTI enabled since clang does just insert a
BTI C at the start of every function, and GCC works fin
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106671
--- Comment #8 from Mark Brown ---
Note that the issue was found in the Linux kernel - we were expecting to see
the BTI Cs there, it's certainly a lot simpler to work with.