1// REQUIRES: x86 2// Should preserve the value of the "end" symbol if it is defined. 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-nm %t | FileCheck %s 7 8// CHECK: 0000000000000005 A end 9 10.global _start,end 11end = 5 12.text 13_start: 14 nop 15.bss 16 .space 6 17