On Fri, 2022-07-29 at 18:36 +0800, Xi Ruoyao wrote:Yes, we need a GCC attribute to specify the per-cpu variable.
The relocation against local percpu variable is broken up. I'll try
to fix it.
Hmm... The problem is the "addresses" of per-cpu symbols are faked: they
are actually offsets from $r21. So we can't just load such an offset
with PCALA addressing.
It looks like we'll need to introduce an attribute for GCC to make an
variable "must be addressed via GOT", and add the attribute into
PER_CPU_ATTRIBUTES.