[PATCH v3 1/1] LoongArch: Add static PIE support
Xi Ruoyao
xry111@xry111.site
Fri Sep 30 12:47:51 GMT 2022
On Thu, 2022-09-29 at 21:32 +0800, caiyinyu wrote:
> Here are some mistakes:
Sorry for the stupid mistake...`
I need to be AFK for several days, will send v4 once I'm back.
> diff --git a/sysdeps/loongarch/configure b/sysdeps/loongarch/configure
> index 70d6fec5c1..6edd6d08a5 100644
> --- a/sysdeps/loongarch/configure
> +++ b/sysdeps/loongarch/configure
> @@ -14,10 +14,10 @@ else
> .global _start
> .type _start, @function
> _start:
> - li.w $a7, 93
> + li.w \$a7, 93
> /* This ensures the assembler supports explicit reloc. */
> - pcalau12i $a0, %pc_hi20(x)
> - ld.w $a0, $a0, %pc_lo12(x)
> + pcalau12i \$a0, %pc_hi20(x)
> + ld.w \$a0, \$a0, %pc_lo12(x)
> syscall 0
--
Xi Ruoyao <xry111@xry111.site>
School of Aerospace Science and Technology, Xidian University
More information about the Libc-alpha
mailing list