llvm/test/MC/LoongArch/Relocations/fde-reloc.s
raw| 1 | # RUN: llvm-mc --filetype=obj --triple=loongarch64 < %s \ |
| 2 | # RUN: | llvm-readobj -r - | FileCheck %s |
| 3 | |
| 4 | ## Ensure that the eh_frame records the symbolic difference with |
| 5 | ## the R_LARCH_32_PCREL relocation. |
| 6 | |
| 7 | func: |
| 8 | .cfi_startproc |
| 9 | ret |
| 10 | .cfi_endproc |
| 11 | |
| 12 | # CHECK: Section (4) .rela.eh_frame { |
| 13 | # CHECK-NEXT: 0x1C R_LARCH_32_PCREL .text 0x0 |
| 14 | # CHECK-NEXT: } |