1 # Test that a relocation's symbol can be an integer.
2 # RUN: yaml2obj %s > %t
3 # LLVM tools (both llvm-readobj and llvm-objdump) reject relocations with
4 # invalid symbol indexes, so inspect the hex contents instead.
5 # RUN: llvm-readobj -x .rela.text %t | FileCheck %s
7 # CHECK: Hex dump of section '.rela.text':
8 # CHECK-NEXT: 0x00000000 00000000 00000000 02000000 42000000
9 # Symbol index 0x42 --^
10 # CHECK-NEXT: 0x00000010 00000000 00000000 00000000 00000000
11 # CHECK-NEXT: 0x00000020 02000000 01000000 00000000 00000000
12 # Symbol index 0x01 --^