It seems to be a linker bug introduced by the kernel LLVM being updated to 12.0.x for Android 12.
It doesn't impact 3rd generation Pixels despite them using the same LLVM toolchain because they still use http://ld.gold from an old version of binutils rather than ld.lld.