1
1
mirror of https://github.com/rui314/mold.git synced 2024-12-29 11:24:36 +03:00
mold/test/static.s
2020-10-26 21:37:49 +09:00

25 lines
656 B
ArmAsm

# RUN: llvm-mc -filetype=obj -triple=x86_64-unknown-linux %s -o %t.o
# RUN: mold -o %t.exe \
# RUN: /usr/lib/x86_64-linux-gnu/crt1.o \
# RUN: /usr/lib/x86_64-linux-gnu/crti.o \
# RUN: /usr/lib/gcc/x86_64-linux-gnu/9/crtbeginT.o \
# RUN: %t.o \
# RUN: /usr/lib/gcc/x86_64-linux-gnu/9/libgcc.a \
# RUN: /usr/lib/gcc/x86_64-linux-gnu/9/libgcc_eh.a \
# RUN: /usr/lib/x86_64-linux-gnu/libc.a \
# RUN: /usr/lib/gcc/x86_64-linux-gnu/9/crtend.o \
# RUN: /usr/lib/x86_64-linux-gnu/crtn.o
.text
.globl main
main:
lea .Lhello(%rip), %rdi
xor %eax, %eax
call printf
xor %edi, %edi
call exit
.data
.Lhello:
.ascii "Hello world!\n"