1 # RUN: yaml2obj %p/Inputs/plt-sec.yaml &> %t.exe
2 # RUN: llvm-bolt %t.exe -o %t.out
3 # RUN: (llvm-readelf --program-headers %t.out | grep LOAD | tail -n 1 ; llvm-nm %t.out) \
6 ## Check that llvm-bolt correctly updates _end symbol to match the end of the
7 ## last loadable segment.
8 CHECK: LOAD 0x[[#%x,OFFSET:]] 0x[[#%x,VMA:]] 0x[[#%x,PA:]] 0x[[#%x,FILESIZE:]] 0x[[#%x,MEMSIZE:]]
9 CHECK: [[#%.16x, VMA + MEMSIZE]] {{.}} _end