2 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o
3 # RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/resolution-end.s -o %t2.o
4 # RUN: ld.lld -shared -soname=so -o %t2.so %t2.o
5 # RUN: ld.lld %t1.o %t2.so -o %t
6 # RUN: llvm-readobj --symbols -S --section-data %t | FileCheck %s
8 # Test that we resolve _end to the this executable.
11 # CHECK-NEXT: Type: SHT_PROGBITS
13 # CHECK-NEXT: SHF_ALLOC
14 # CHECK-NEXT: SHF_EXECINSTR
16 # CHECK-NEXT: Address:
21 # CHECK-NEXT: AddressAlignment:
22 # CHECK-NEXT: EntrySize:
23 # CHECK-NEXT: SectionData (
24 # CHECK-NEXT: 0000: 00302000 00000000 00302000 00000000
29 # CHECK-NEXT: Value: 0x203000
33 # CHECK-NEXT: Value: 0x203000