lkml.org 
[lkml]   [2022]   [Jul]   [29]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v4 0/4] LoongArch: Support new relocation types
From
Date
On Fri, 2022-07-29 at 18:36 +0800, Xi Ruoyao wrote:

> 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.

--
Xi Ruoyao <xry111@xry111.site>
School of Aerospace Science and Technology, Xidian University

\
 
 \ /
  Last update: 2022-07-29 13:46    [W:0.080 / U:0.456 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site