Skip to content

Commit

Permalink
Add missing test file from r339799.
Browse files Browse the repository at this point in the history
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@339927 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
pcc committed Aug 16, 2018
1 parent 382c2c9 commit ad8a8d1
Showing 1 changed file with 31 additions and 0 deletions.
31 changes: 31 additions & 0 deletions test/tools/llvm-readobj/Inputs/elf-packed-relocs3.s
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
.ascii "APS2"
.sleb128 6 // Number of relocations
.sleb128 4096 // Initial offset

.sleb128 2 // Number of relocations in group
.sleb128 8 // RELOCATION_GROUP_HAS_ADDEND_FLAG

.sleb128 256 // Reloc 1: r_offset delta
.sleb128 8 // Reloc 1: r_info R_X86_RELATIVE
.sleb128 0 // Reloc 1: r_addend delta
.sleb128 128 // Reloc 2: r_offset delta
.sleb128 8 // Reloc 2: r_info R_X86_RELATIVE
.sleb128 8 // Reloc 2: r_addend delta

.sleb128 2 // Number of relocations in group
.sleb128 0 // No RELOCATION_GROUP_HAS_ADDEND_FLAG

.sleb128 128 // reloc 1: r_offset delta
.sleb128 (1 << 32) | 1 // r_x86_64_64 (sym index 1)
.sleb128 8 // reloc 2: r_offset delta
.sleb128 (2 << 32) | 1 // r_x86_64_64 (sym index 2)

.sleb128 2 // Number of relocations in group
.sleb128 8 // RELOCATION_GROUP_HAS_ADDEND_FLAG

.sleb128 8 // reloc 1: r_offset delta
.sleb128 (1 << 32) | 1 // r_x86_64_64 (sym index 1)
.sleb128 0 // reloc 1: r_addend delta
.sleb128 8 // reloc 2: r_offset delta
.sleb128 (2 << 32) | 1 // r_x86_64_64 (sym index 2)
.sleb128 8 // reloc 2: r_addend delta

0 comments on commit ad8a8d1

Please sign in to comment.