https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120002
--- Comment #6 from Andrew Pinski <pinskia at gcc dot gnu.org> --- >If this behavior is expected then it could also affect all other >architectures, no? It does, arm 32bit is affected which is why the compat vdso does that :). x86_64 is not affected due to having a wider range for offsets. PowerPC well that uses a TOC so ... RISCV GCC emits: lla a0,hidden_symbol+134217729 Which might cause an overflow which is why aarch64 uses the a constant pool here.