Follow @Openwall on Twitter for new release announcements and other news
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <f60bca1c-4fbd-c606-811a-6038a52435dc@loongson.cn>
Date: Wed, 18 Jun 2025 15:15:10 +0800
From: lixing <lixing@...ngson.cn>
To: Yao Zi <ziyao@...root.org>, musl@...ts.openwall.com
Cc: wanghongliang@...ngson.cn, shanjiantao@...ngson.cn
Subject: Re: [PATCH] LoongArch64: add new reloc types and
 NT_LOONGARCH_HW_* into elf.h

Thanks, Yao.

And also thanks for Rich to review these patches again, including the 
new reloc types.

[1] https://www.openwall.com/lists/musl/2024/09/23/1
[2] https://www.openwall.com/lists/musl/2024/08/02/1

在 2025/6/18 下午1:18, Yao Zi 写道:
> On Wed, Jun 18, 2025 at 12:19:27AM -0400, Rich Felker wrote:
>> On Wed, Jun 18, 2025 at 04:02:37AM +0000, Yao Zi wrote:
>>> On Thu, Apr 03, 2025 at 09:57:16AM +0000, Yao Zi wrote:
>>>> On Sat, Jan 04, 2025 at 04:41:44PM +0800, Jingyun Hua wrote:
>>>>> These new LoongArch reloc types(101 to 126) have been added in LoongArch psABI
>>>>> v2.30 and NT_LOONGARCH_HW_BREAK/NT_LOONGARCH_HW_WATCH sync Linux 6.12 elf.h.
>>>>>
>>>>> Link:
>>>>> https://github.com/loongson/la-abi-specs/blob/v2.30/laelf.adoc#relocation-types
>>>>> https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/include/uapi/linux/elf.h?h=v6.12#n458
>>>>>
>>>>> Also refer to glibc:
>>>>> https://sourceware.org/git/?p=glibc.git;a=blob;f=elf/elf.h
>>>> Ping on this patch, This is necessary for LLDB 20.1.2 to be built for
>>>> loongarch64. Although there's a workaround introduced later[1], it will
>>>> be nice to have these definitions presented in musl's elf.h as soon as
>>>> possible :)
>>>>
>>>> Thanks,
>>>> Yao Zi
>>> Gently ping again on this, it will be nice if we could include it in
>>> musl v1.2.6 :)
>>>
>>>> [1]: https://github.com/llvm/llvm-project/commit/50ae1c7bf40ba50aaf3132fa869eda8f06648155
>> Yes, I want to make sure the missing loongarch stuff gets in without
>> being overlooked. Pleae ping any other stuff that's missing too. Thanks!
> I'm maintaining a LLVM-based distro, and with this patch merged, no more
> backport is required to build loongarch64 packages.
>
> Also had a quick glance at Alpine's aports, there're two extra patches
> backported by Alpine,
>
> 1. Define fpu and simd context in signal.h[1][2]
> 2. Define structures for LSX and LASX vector registers in bits/user.h[3][4]
>
> where 1 affects dotnet and 2 affects binutils-gdb, according to the
> commit messages.
>
> Those're all patches which I'm aware of. I'm not sure whether the links
> point to the latest revisions (the openwall archive is a little hard to
> search).
>
> Anyway, thanks for your great work!
>
>> Rich
> Best regards,
> Yao Zi
>
> [1]: https://www.openwall.com/lists/musl/2024/09/23/1
> [2]: https://git.alpinelinux.org/aports/commit/main/musl/loongarch64-add-fpu-and-simd-context-to-signal.h.patch?id=e54df144c2e361cc1a8207303ae93ef978dcf36c
> [3]: https://www.openwall.com/lists/musl/2024/08/02/1
> [4]: https://git.alpinelinux.org/aports/commit/main/musl/loongarch64-Add-lsx-and-lasx-vector-structure-defini.patch?id=ed8fd489f491913855b3bea040c0957f8a460403

Powered by blists - more mailing lists

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.