[PATCH 1/1] LoongArch: Add pointer mangling support.

caiyinyu caiyinyu@loongson.cn
Sun Aug 21 07:25:57 GMT 2022


在 2022/8/19 下午9:46, Xi Ruoyao 写道:
> On Wed, 2022-08-17 at 16:46 +0000, Joseph Myers wrote:
>> On Wed, 17 Aug 2022, Xi Ruoyao via Libc-alpha wrote:
>>
>>> I share your feeling...  But the fix needed by ld.so (bc2a35c in
>>> binutils-gdb.git) is after two commits massively changing the relocation
>>> types.  Backporting the relocation type changes is completely
>>> unacceptable (such an attempt will do nothing except annoying Nick
>>> Clifton :). And bc2a35c alone cannot be backported trivially.
>> If the branch isn't usable as-is on LoongArch (which apparently is the
>> state at present), there should be no problem with any backport to
>> architecture-specific code, regardless of how large it is - it can't
>> exactly regress from "not usable".
> Sorry, my memory was flawed when I wrote the last reply (due to my 2-
> week vacation :( ).  It's not completely usable, only IFUNC is broken.

The ifunc supports are not available on binutils 2.39, so the ifunc tests

are failed. The " LoongArch: Add pointer mangling support" patch was tested

with ifunc disabled.

The full tests were all passed by using binutils master branch. If there

are no any other comments, I will include this patch.



>
>> I note that the only GCC target supported for LoongArch is
>> loongarch*-*-linux*, so there isn't really a question of being usable for
>> bare-metal either.
>>



More information about the Libc-alpha mailing list