YANG Xudong

Results 37 comments of YANG Xudong

I wrote a tool to sanitize templates generated by helmify. It just works for now without handling complicated cases. https://github.com/yxd-ym/go-template-sanitizer Just ``` bash cat your-template.yaml | go-template-sanitizer ```

给 postgresql 发了一个 loongarch 的使用 crc32 指令优化的 patch。提交到了 pg commitfest 2023-07。求 review。 - https://www.postgresql.org/message-id/flat/b522a0c5-e3b2-99cc-6387-58134fb88cbe%40ymatrix.cn - https://commitfest.postgresql.org/43/4353/

There is some patch in the mailing list and I guess the support is coming soon. I'm using a patched version of musl to try this. https://inbox.vuxu.org/musl/[email protected]/ Anyway, maybe trying...

musl support is coming: https://www.openwall.com/lists/musl/2024/01/25/12

https://git.musl-libc.org/cgit/musl/commit/?id=522bd54edaa2fa404fd428f8ad0bcb0f0bec5639

https://musl.libc.org/releases.html musl 1.2.5 adds loongarch64 support.

https://elixir.bootlin.com/llvm/llvmorg-18.1.8/source/llvm/lib/Target/LoongArch/LoongArchTargetMachine.cpp#L58 I'm trying to handle the code model issue for loongarch64 target. If the code model is not set properly, it will have R_LARCH_B26 overflow problem now.

I managed to bootstrap a loongarch64-linux-musl zig with some patch like this on zig: ``` diff diff --git a/lib/libc/glibc/sysdeps/loongarch/start.S b/lib/libc/glibc/sysdeps/loongarch/start.S index de7f9645cf..976dd92178 100644 --- a/lib/libc/glibc/sysdeps/loongarch/start.S +++ b/lib/libc/glibc/sysdeps/loongarch/start.S @@ -56,7 +56,7...

Same as https://github.com/ziglang/zig-bootstrap/issues/166#issuecomment-2321565953

https://github.com/ziglang/zig-bootstrap/pull/186 Managed to bootstrap loongarch64-linux-musl with this patch. However, I'm not familiar with llvm so I'm not sure whether this fix is reasonable.