brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1000 B · d0c143c Raw
39 lines · plain
1# REQUIRES: x862# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %s -o %t1.o3# RUN: llvm-mc -filetype=obj -triple=x86_64-pc-linux %p/Inputs/resolution-end.s -o %t2.o4# RUN: ld.lld -shared -soname=so -o %t2.so %t2.o5# RUN: ld.lld %t1.o %t2.so -o %t6# RUN: llvm-readobj --symbols -S --section-data  %t | FileCheck %s7 8# Test that we resolve _end to the this executable.9 10# CHECK:      Name: .text11# CHECK-NEXT: Type: SHT_PROGBITS12# CHECK-NEXT: Flags [13# CHECK-NEXT:   SHF_ALLOC14# CHECK-NEXT:   SHF_EXECINSTR15# CHECK-NEXT: ]16# CHECK-NEXT: Address:17# CHECK-NEXT: Offset:18# CHECK-NEXT: Size:19# CHECK-NEXT: Link:20# CHECK-NEXT: Info:21# CHECK-NEXT: AddressAlignment:22# CHECK-NEXT: EntrySize:23# CHECK-NEXT: SectionData (24# CHECK-NEXT:   0000: 00302000 00000000 00302000 0000000025# CHECK-NEXT: )26 27# CHECK:      Symbol {28# CHECK:        Name: _end29# CHECK-NEXT:   Value: 0x20300030 31# CHECK:      Symbol {32# CHECK:        Name: end33# CHECK-NEXT:   Value: 0x20300034 35.global _start36_start:37.quad _end38.quad end39