llvm-project/lld/test/elf/linker-as-ld.test

17 lines
427 B
Plaintext

REQUIRES: system-linker-elf
RUN: mkdir -p %t.dir && cp `which lld` %t.dir/ld
RUN: %t.dir/ld -target x86_64-linux -o %t %p/Inputs/relocs.x86-64 \
RUN: -e _start -static
RUN: llvm-readobj -t %t | FileCheck %s
# Test linker run as "ld" on elf based system works like gnu linker.
CHECK: Symbol {
CHECK: Name: i
CHECK-NEXT: Value:
CHECK-NEXT: Size:
CHECK-NEXT: Binding:
CHECK-NEXT: Type: Object