[PATCH] LoongArch: Fix a bug of getting relocation type

Lulu Cai cailulu@loongson.cn
Sat Jan 27 13:37:04 GMT 2024


On 1/26/24 7:02 PM, Xi Ruoyao wrote:
> On Fri, 2024-01-26 at 10:55 +0000, Nick Clifton wrote:
>> Hi mengqinggang,
>>
>>> This patch and
>>>
>>> 969f5c0e1        LoongArch: gas: Add support for s9 register
>>> a0aa6f4ab        LoongArch: ld: Add support for TLS LE symbol with addend
>>>
>>> need to apply to 2.42 branch.
>> Applied.
>>
>> I am hoping that this is the last of these as I am planning on creating the
>> release on Monday, and I am always worried that last minute changes will
>> bring in new bugs rather than fix old ones...
> Pity that we still have the __thread vs. -mcmodel=extreme issue
> (https://sourceware.org/pipermail/binutils/2024-January/132120.html and
> all the following discussion) not resolved yet.
>
> Possible to apply my straightforward (stupid) "fix" for 2.42 if a proper
> fix cannot be made soon?
>

Hi,
We have sent a new patch to fix the incorrect type transition problem 
caused by -mcmodel=extreme.
Now only TLS type transition will be performed for normal.
[PATCH 1/2] LoongArch: Fix incorrect type transition under extreme cmodel
[PATCH 2/2] LoongArch: update test cases about TLS

Can you help us merge it into the 2.42 branch?
Thanks.

Related discussions:
[PATCH] LoongArch: Disallow TLS transition when a section contains 
TLS_IE64 or TLS_DESC64 reloc



More information about the Binutils mailing list