1// REQUIRES: x86 2// Should set the value of the "end" symbol if it is undefined. 3 4// RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t.o 5// RUN: ld.lld %t.o -o %t 6// RUN: llvm-readobj --sections --symbols %t | FileCheck %s 7 8// CHECK: Sections [ 9// CHECK: Name: .bss 10// CHECK-NEXT: Type: 11// CHECK-NEXT: Flags [ 12// CHECK-NEXT: SHF_ALLOC 13// CHECK-NEXT: SHF_WRITE 14// CHECK-NEXT: ] 15// CHECK-NEXT: Address: 0x202159 16// CHECK-NEXT: Offset: 17// CHECK-NEXT: Size: 6 18// CHECK: ] 19// CHECK: Symbols [ 20// CHECK: Name: end 21// CHECK-NEXT: Value: 0x20215F 22// CHECK: ] 23 24.global _start,end 25.text 26_start: 27 nop 28.bss 29 .space 6 30