The symbols are of the STT_AMDGPU_LDS type introduced with a previous
change. The linker is then expected to resolve relocations, which are
Initially disabled for HSA and PAL environments until they have caught up
in terms of linker and runtime loader.
- The llvm.amdgcn.groupstaticsize intrinsics can no longer be lowered to a constant at compile times, which means some tests can no longer be applied.
The current "solution" is a terrible hack, but the intrinsic isn't used by Mesa, so we can keep it for now.
- We no longer know the full LDS size per kernel at compile time, which means that we can no longer generate a relevant error message at compile time. It would be possible to add a check for the size of individual variables, but ultimately the linker will have to perform the final check.