[BOLT][NFC] Fix test X86/dynamic-relocs-on-entry.s (#125264)

This commit is contained in:
YongKang Zhu
2025-01-31 13:19:49 -08:00
committed by GitHub
parent 91e77d88a4
commit e6d12ad791

View File

@@ -4,12 +4,12 @@
# RUN: %clang %cflags -fPIC -pie %s -o %t.exe -nostdlib -Wl,-q
# RUN: llvm-bolt %t.exe -o %t.bolt > %t.out.txt
# RUN: readelf -r %t.bolt >> %t.out.txt
# RUN: llvm-readelf -r %t.bolt >> %t.out.txt
# RUN: llvm-objdump --disassemble-symbols=chain %t.bolt >> %t.out.txt
# RUN: FileCheck %s --input-file=%t.out.txt
## Check if the new address in `chain` is correctly updated by BOLT
# CHECK: Relocation section '.rela.dyn' at offset 0x{{.*}} contains 1 entry:
# CHECK: Relocation section '.rela.dyn' at offset 0x{{.*}} contains 1 entries:
# CHECK: {{.*}} R_X86_64_RELATIVE [[#%x,ADDR:]]
# CHECK: [[#ADDR]]: c3 retq
.text
@@ -29,4 +29,4 @@ _start:
.data
.Lfoo:
.quad Label
.quad Label