From 8c1ab65c0f548d20b7f177bdb736daaf603340e1 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 17 Apr 2024 15:54:38 +0200 Subject: Adding upstream version 0.0~git20221206.8b7148f. Signed-off-by: Daniel Baumann --- libc-top-half/musl/arch/or1k/crt_arch.h | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 libc-top-half/musl/arch/or1k/crt_arch.h (limited to 'libc-top-half/musl/arch/or1k/crt_arch.h') diff --git a/libc-top-half/musl/arch/or1k/crt_arch.h b/libc-top-half/musl/arch/or1k/crt_arch.h new file mode 100644 index 0000000..9e310ca --- /dev/null +++ b/libc-top-half/musl/arch/or1k/crt_arch.h @@ -0,0 +1,18 @@ +__asm__( +".text \n" +".global " START " \n" +".align 4 \n" +START ": \n" +" l.jal 1f \n" +" l.ori r3, r1, 0 \n" +".weak _DYNAMIC \n" +".hidden _DYNAMIC \n" +" .word _DYNAMIC-. \n" +"1: l.lwz r4, 0(r9) \n" +" l.add r4, r4, r9 \n" +" l.addi r2, r0, -8 \n" +" l.and r1, r1, r2 \n" +" l.addi r1, r1, -16 \n" +" l.jal " START "_c \n" +" l.ori r2, r0, 0 \n" +); -- cgit v1.2.3