12 lines · plain
1# RUN: yaml2obj %p/Inputs/plt-sec.yaml &> %t.exe2# RUN: llvm-bolt %t.exe -o %t.out3 4# RUN: llvm-readelf --program-headers %t.out | grep LOAD | tail -n 1 > %t.load5# RUN: llvm-nm %t.out >> %t.load6# RUN: FileCheck %s < %t.load7 8## Check that llvm-bolt correctly updates _end symbol to match the end of the9## last loadable segment.10CHECK: LOAD 0x[[#%x,OFFSET:]] 0x[[#%x,VMA:]] 0x[[#%x,PA:]] 0x[[#%x,FILESIZE:]] 0x[[#%x,MEMSIZE:]]11CHECK: [[#%.16x, VMA + MEMSIZE]] {{.}} _end12