-.globl _start;
+.globl _start
_start:
-.globl end;
+.globl end
end:
-.globl _bar,_dynamic;
+.globl _bar,_dynamic
_bar:
_dynamic:
-.globl _bar,_static;
+.globl _bar,_static
_bar:
_static:
-.globl _bar;
+.globl _bar
_bar:
# REQUIRES: aarch64
# exits with return code 42 on FreeBSD/AArch64
-.globl _start;
+.globl _start
_start:
mov x0, 42
mov x8, 1
# RUN: | FileCheck %s
# exits with return code 42 on linux
-.globl _start;
+.globl _start
_start:
mov $60, %rax
mov $42, %rdi
# REQUIRES: x86
# exits with return code 42 on linux
-.globl _start;
+.globl _start
_start:
mov $1, %eax
mov $42, %ebx
# RUN: ld.lld %t -o %t2
# RUN: llvm-objdump -s %t2 | FileCheck -check-prefix=NONE %s
-.globl _start;
+.globl _start
_start:
nop
# RUN: ld.lld %t
# RUN: llvm-readobj a.out > /dev/null 2>&1
-.globl _start;
+.globl _start
_start:
mov $60, %rax
mov $42, %rdi
nop
.text
-.globl _start;
+.globl _start
_start:
// There is no .eh_frame section,
.cfi_endproc
.text
-.globl _start;
+.globl _start
_start:
// NOHDR: Sections [
# REQUIRES: x86,ppc,mips,aarch64
-.globl _start;
+.globl _start
_start:
// NOENTRY-NOT: FINI
// NOENTRY: ]
-.global _start,_init,_fini,_foo,_bar,_undef;
+.global _start,_init,_fini,_foo,_bar,_undef
_start:
_init = 0x11010
_fini = 0x11020
// RUN: ld.lld -o %t3 %t.o -L%t.dir -Bstatic -call_shared -lls
// RUN: llvm-readobj --symbols %t3 | FileCheck --check-prefix=DYNAMIC %s
-.globl _start,_bar;
+.globl _start,_bar
_start:
# RUN: FileCheck --check-prefix=TERNERR %s
# TERNERR: unexpected EOF
-.globl _start;
+.globl _start
_start:
nop
# SEC-MULTI: 6 .shstrtab 0000002c {{[0-9a-f]*}}
# SEC-MULTI: 7 .strtab 00000008 {{[0-9a-f]*}}
-.globl _start;
+.globl _start
_start:
mov $60, %rax
mov $42, %rdi
# ERR1: unknown directive: FOO
-.globl _start, _label;
+.globl _start, _label
_start:
mov $60, %rax
mov $42, %rdi
# next code will not link without noinhibit-exec flag
# because of undefined symbol _bar
-.globl _start;
+.globl _start
_start:
call _bar
# CHECK-NEXT: }
.text
-.globl _start;
+.globl _start
_start:
nop
#RUN: llvm-objdump -section-headers %t1 | FileCheck %s -check-prefix AFTER
# exits with return code 42 on linux
-.globl _start;
+.globl _start
_start:
mov $60, %rax
mov $42, %rdi
// RUN: not ld.lld -o %t/r %r/m.o --sysroot=%t -Llib -l:libls.a
// RUN: not ld.lld -o %t/r %r/m.o --sysroot=%t -L/lib -l:libls.a
-.globl _start,_bar;
+.globl _start,_bar
_start:
# EXPORT-SO: Name: export
# EXPORT-SO: ]
-.globl _start;
+.globl _start
_start:
.globl export
// RUN: ld.lld -o %t3 %t.o --whole-archive %tthin.a
// RUN: llvm-readobj --symbols %t3 | FileCheck --check-prefix=ADDED %s
-.globl _start;
+.globl _start
_start: