## Test that llvm-readobj shows proper relocation type
## names and values for the Xtensa target.
# RUN: yaml2obj %s -o %t-xtensa.o
# RUN: llvm-readobj -r %t-xtensa.o | FileCheck %s
# CHECK: 0x0 R_XTENSA_NONE - 0x0
# CHECK-NEXT: 0x4 R_XTENSA_32 - 0x0
# CHECK-NEXT: 0x8 R_XTENSA_RTLD - 0x0
# CHECK-NEXT: 0xC R_XTENSA_GLOB_DAT - 0x0
# CHECK-NEXT: 0x10 R_XTENSA_JMP_SLOT - 0x0
# CHECK-NEXT: 0x14 R_XTENSA_RELATIVE - 0x0
# CHECK-NEXT: 0x18 R_XTENSA_PLT - 0x0
# CHECK-NEXT: 0x1C R_XTENSA_OP0 - 0x0
# CHECK-NEXT: 0x20 R_XTENSA_OP1 - 0x0
# CHECK-NEXT: 0x24 R_XTENSA_OP2 - 0x0
# CHECK-NEXT: 0x28 R_XTENSA_ASM_EXPAND - 0x0
# CHECK-NEXT: 0x2C R_XTENSA_ASM_SIMPLIFY - 0x0
# CHECK-NEXT: 0x30 R_XTENSA_32_PCREL - 0x0
# CHECK-NEXT: 0x34 R_XTENSA_GNU_VTINHERIT - 0x0
# CHECK-NEXT: 0x38 R_XTENSA_GNU_VTENTRY - 0x0
# CHECK-NEXT: 0x3C R_XTENSA_DIFF8 - 0x0
# CHECK-NEXT: 0x40 R_XTENSA_DIFF16 - 0x0
# CHECK-NEXT: 0x44 R_XTENSA_DIFF32 - 0x0
# CHECK-NEXT: 0x48 R_XTENSA_SLOT0_OP - 0x0
# CHECK-NEXT: 0x4C R_XTENSA_SLOT1_OP - 0x0
# CHECK-NEXT: 0x50 R_XTENSA_SLOT2_OP - 0x0
# CHECK-NEXT: 0x54 R_XTENSA_SLOT3_OP - 0x0
# CHECK-NEXT: 0x58 R_XTENSA_SLOT4_OP - 0x0
# CHECK-NEXT: 0x5C R_XTENSA_SLOT5_OP - 0x0
# CHECK-NEXT: 0x60 R_XTENSA_SLOT6_OP - 0x0
# CHECK-NEXT: 0x64 R_XTENSA_SLOT7_OP - 0x0
# CHECK-NEXT: 0x68 R_XTENSA_SLOT8_OP - 0x0
# CHECK-NEXT: 0x6C R_XTENSA_SLOT9_OP - 0x0
# CHECK-NEXT: 0x70 R_XTENSA_SLOT10_OP - 0x0
# CHECK-NEXT: 0x74 R_XTENSA_SLOT11_OP - 0x0
# CHECK-NEXT: 0x78 R_XTENSA_SLOT12_OP - 0x0
# CHECK-NEXT: 0x7C R_XTENSA_SLOT13_OP - 0x0
# CHECK-NEXT: 0x80 R_XTENSA_SLOT14_OP - 0x0
# CHECK-NEXT: 0x84 R_XTENSA_SLOT0_ALT - 0x0
# CHECK-NEXT: 0x88 R_XTENSA_SLOT1_ALT - 0x0
# CHECK-NEXT: 0x8C R_XTENSA_SLOT2_ALT - 0x0
# CHECK-NEXT: 0x90 R_XTENSA_SLOT3_ALT - 0x0
# CHECK-NEXT: 0x94 R_XTENSA_SLOT4_ALT - 0x0
# CHECK-NEXT: 0x98 R_XTENSA_SLOT5_ALT - 0x0
# CHECK-NEXT: 0x9C R_XTENSA_SLOT6_ALT - 0x0
# CHECK-NEXT: 0xA0 R_XTENSA_SLOT7_ALT - 0x0
# CHECK-NEXT: 0xA4 R_XTENSA_SLOT8_ALT - 0x0
# CHECK-NEXT: 0xA8 R_XTENSA_SLOT9_ALT - 0x0
# CHECK-NEXT: 0xAC R_XTENSA_SLOT10_ALT - 0x0
# CHECK-NEXT: 0xB0 R_XTENSA_SLOT11_ALT - 0x0
# CHECK-NEXT: 0xB4 R_XTENSA_SLOT12_ALT - 0x0
# CHECK-NEXT: 0xB8 R_XTENSA_SLOT13_ALT - 0x0
# CHECK-NEXT: 0xBC R_XTENSA_SLOT14_ALT - 0x0
# CHECK-NEXT: 0xC0 R_XTENSA_TLSDESC_FN - 0x0
# CHECK-NEXT: 0xC4 R_XTENSA_TLSDESC_ARG - 0x0
# CHECK-NEXT: 0xC8 R_XTENSA_TLS_DTPOFF - 0x0
# CHECK-NEXT: 0xCC R_XTENSA_TLS_TPOFF - 0x0
# CHECK-NEXT: 0xD0 R_XTENSA_TLS_FUNC - 0x0
# CHECK-NEXT: 0xD4 R_XTENSA_TLS_ARG - 0x0
# CHECK-NEXT: 0xD8 R_XTENSA_TLS_CALL - 0x0
--- !ELF
FileHeader:
Class: ELFCLASS32
Data: ELFDATA2LSB
Type: ET_REL
Machine: EM_XTENSA
Sections:
- Name: .rela.text
Type: SHT_RELA
Relocations:
- Offset: 0x0000000000000000
Type: R_XTENSA_NONE
- Offset: 0x0000000000000004
Type: R_XTENSA_32
- Offset: 0x0000000000000008
Type: R_XTENSA_RTLD
- Offset: 0x000000000000000C
Type: R_XTENSA_GLOB_DAT
- Offset: 0x0000000000000010
Type: R_XTENSA_JMP_SLOT
- Offset: 0x0000000000000014
Type: R_XTENSA_RELATIVE
- Offset: 0x0000000000000018
Type: R_XTENSA_PLT
- Offset: 0x000000000000001C
Type: R_XTENSA_OP0
- Offset: 0x0000000000000020
Type: R_XTENSA_OP1
- Offset: 0x0000000000000024
Type: R_XTENSA_OP2
- Offset: 0x0000000000000028
Type: R_XTENSA_ASM_EXPAND
- Offset: 0x000000000000002C
Type: R_XTENSA_ASM_SIMPLIFY
- Offset: 0x0000000000000030
Type: R_XTENSA_32_PCREL
- Offset: 0x0000000000000034
Type: R_XTENSA_GNU_VTINHERIT
- Offset: 0x0000000000000038
Type: R_XTENSA_GNU_VTENTRY
- Offset: 0x000000000000003C
Type: R_XTENSA_DIFF8
- Offset: 0x0000000000000040
Type: R_XTENSA_DIFF16
- Offset: 0x0000000000000044
Type: R_XTENSA_DIFF32
- Offset: 0x0000000000000048
Type: R_XTENSA_SLOT0_OP
- Offset: 0x000000000000004C
Type: R_XTENSA_SLOT1_OP
- Offset: 0x0000000000000050
Type: R_XTENSA_SLOT2_OP
- Offset: 0x0000000000000054
Type: R_XTENSA_SLOT3_OP
- Offset: 0x0000000000000058
Type: R_XTENSA_SLOT4_OP
- Offset: 0x000000000000005C
Type: R_XTENSA_SLOT5_OP
- Offset: 0x0000000000000060
Type: R_XTENSA_SLOT6_OP
- Offset: 0x0000000000000064
Type: R_XTENSA_SLOT7_OP
- Offset: 0x0000000000000068
Type: R_XTENSA_SLOT8_OP
- Offset: 0x000000000000006C
Type: R_XTENSA_SLOT9_OP
- Offset: 0x0000000000000070
Type: R_XTENSA_SLOT10_OP
- Offset: 0x0000000000000074
Type: R_XTENSA_SLOT11_OP
- Offset: 0x0000000000000078
Type: R_XTENSA_SLOT12_OP
- Offset: 0x000000000000007C
Type: R_XTENSA_SLOT13_OP
- Offset: 0x0000000000000080
Type: R_XTENSA_SLOT14_OP
- Offset: 0x0000000000000084
Type: R_XTENSA_SLOT0_ALT
- Offset: 0x0000000000000088
Type: R_XTENSA_SLOT1_ALT
- Offset: 0x000000000000008C
Type: R_XTENSA_SLOT2_ALT
- Offset: 0x0000000000000090
Type: R_XTENSA_SLOT3_ALT
- Offset: 0x0000000000000094
Type: R_XTENSA_SLOT4_ALT
- Offset: 0x0000000000000098
Type: R_XTENSA_SLOT5_ALT
- Offset: 0x000000000000009C
Type: R_XTENSA_SLOT6_ALT
- Offset: 0x00000000000000A0
Type: R_XTENSA_SLOT7_ALT
- Offset: 0x00000000000000A4
Type: R_XTENSA_SLOT8_ALT
- Offset: 0x00000000000000A8
Type: R_XTENSA_SLOT9_ALT
- Offset: 0x00000000000000AC
Type: R_XTENSA_SLOT10_ALT
- Offset: 0x00000000000000B0
Type: R_XTENSA_SLOT11_ALT
- Offset: 0x00000000000000B4
Type: R_XTENSA_SLOT12_ALT
- Offset: 0x00000000000000B8
Type: R_XTENSA_SLOT13_ALT
- Offset: 0x00000000000000BC
Type: R_XTENSA_SLOT14_ALT
- Offset: 0x00000000000000C0
Type: R_XTENSA_TLSDESC_FN
- Offset: 0x00000000000000C4
Type: R_XTENSA_TLSDESC_ARG
- Offset: 0x00000000000000C8
Type: R_XTENSA_TLS_DTPOFF
- Offset: 0x00000000000000CC
Type: R_XTENSA_TLS_TPOFF
- Offset: 0x00000000000000D0
Type: R_XTENSA_TLS_FUNC
- Offset: 0x00000000000000D4
Type: R_XTENSA_TLS_ARG
- Offset: 0x00000000000000D8
Type: R_XTENSA_TLS_CALL