22 lines · plain
1# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=+relax < %s \2# RUN: | llvm-readobj -r -x .eh_frame - | FileCheck %s3# RUN: llvm-mc -filetype=obj -triple riscv32 -mattr=-relax < %s \4# RUN: | llvm-readobj -r -x .eh_frame - | FileCheck %s5 6# Ensure that the eh_frame records the symbolic difference with the paired7# relocations always.8 9func:10 .cfi_startproc11 ret12 .cfi_endproc13 14# CHECK: Section (4) .rela.eh_frame {15# CHECK-NEXT: 0x1C R_RISCV_32_PCREL .L0 0x016# CHECK-NEXT: }17# CHECK: Hex dump of section '.eh_frame':18# CHECK-NEXT: 0x00000000 10000000 00000000 017a5200 017c010119# CHECK-NEXT: 0x00000010 1b0c0200 10000000 18000000 0000000020# CHECK-NEXT: 0x00000020 04000000 0000000021# ^ address_range22