diff --git a/lld/test/ELF/Inputs/shf-info-link.test b/lld/test/ELF/Inputs/shf-info-link.test
--- a/lld/test/ELF/Inputs/shf-info-link.test
+++ b/lld/test/ELF/Inputs/shf-info-link.test
@@ -13,9 +13,8 @@
     Link:            .symtab
     Info:            .text
     Relocations:
-      - Offset:          0x0000000000000000
-        Symbol:          foo
-        Type:            R_X86_64_64
+      - Symbol:      foo
+        Type:        R_X86_64_64
 Symbols:
   - Name:            foo
     Binding:         STB_GLOBAL
diff --git a/lld/test/ELF/arm-thumb-undefined-weak-narrow.test b/lld/test/ELF/arm-thumb-undefined-weak-narrow.test
--- a/lld/test/ELF/arm-thumb-undefined-weak-narrow.test
+++ b/lld/test/ELF/arm-thumb-undefined-weak-narrow.test
@@ -29,8 +29,7 @@
     Link:            .symtab
     Info:            .text
     Relocations:
-      - Offset:          0
-        Symbol:          undefined_weak
+      - Symbol:          undefined_weak
         Type:            R_ARM_THM_JUMP11
 
 Symbols:
diff --git a/lld/test/ELF/arm-v4bx.test b/lld/test/ELF/arm-v4bx.test
--- a/lld/test/ELF/arm-v4bx.test
+++ b/lld/test/ELF/arm-v4bx.test
@@ -26,8 +26,7 @@
     AddressAlign:    0x0000000000000004
     Info:            .text
     Relocations:
-      - Offset:          0x0000000000000000
-        Type:            R_ARM_V4BX
+      - Type:        R_ARM_V4BX
 Symbols:
   - Name:            .text
     Type:            STT_SECTION
diff --git a/lld/test/ELF/debug-relocation-none.test b/lld/test/ELF/debug-relocation-none.test
--- a/lld/test/ELF/debug-relocation-none.test
+++ b/lld/test/ELF/debug-relocation-none.test
@@ -28,8 +28,7 @@
     Link:            .symtab
     Info:            .text
     Relocations:
-      - Offset:          0x0000000000000000
-        Symbol:          bar
+      - Symbol:          bar
         Type:            R_X86_64_64
   - Name:            .debug_line
     Type:            SHT_PROGBITS
diff --git a/lld/test/ELF/i386-pc16.test b/lld/test/ELF/i386-pc16.test
--- a/lld/test/ELF/i386-pc16.test
+++ b/lld/test/ELF/i386-pc16.test
@@ -25,8 +25,7 @@
     Info:            .text
     AddressAlign:    0x04
     Relocations:
-      - Offset:          0
-        Symbol:          _start
+      - Symbol:          _start
         Type:            R_386_16
       - Offset:          4
         Symbol:          _start
diff --git a/lld/test/ELF/icf11.test b/lld/test/ELF/icf11.test
--- a/lld/test/ELF/icf11.test
+++ b/lld/test/ELF/icf11.test
@@ -32,15 +32,13 @@
     Link:            .symtab
     Info:            .text.foo
     Relocations:
-      - Offset:          0x0000000000000000
-        Type:            R_X86_64_NONE
+      - Type:        R_X86_64_NONE
   - Name:            .rela.text.bar
     Type:            SHT_RELA
     Link:            .symtab
     Info:            .text.bar
     Relocations:
-      - Offset:          0
-        Symbol:          zed
+      - Symbol:          zed
         Type:            R_X86_64_64
 Symbols:
   - Name:     zed
diff --git a/lld/test/ELF/invalid/bad-reloc-target.test b/lld/test/ELF/invalid/bad-reloc-target.test
--- a/lld/test/ELF/invalid/bad-reloc-target.test
+++ b/lld/test/ELF/invalid/bad-reloc-target.test
@@ -17,8 +17,7 @@
     Link:        .symtab
     Info:        0
     Relocations: 
-      - Offset:  0x0000000000000000
-        Symbol:  foo
+      - Symbol:  foo
         Type:    R_X86_64_64
 Symbols:         
   - Name:        foo
@@ -43,8 +42,7 @@
     Link:        .symtab
     Info:        99
     Relocations: 
-      - Offset:  0x0000000000000000
-        Symbol:  foo
+      - Symbol:  foo
         Type:    R_X86_64_64
 Symbols:         
   - Name:        foo
@@ -70,6 +68,5 @@
     Type:        SHT_RELA
     Info:        .text
     Relocations:
-      - Offset:  0x0000000000000000
-        Symbol:  255
+      - Symbol:  255
         Type:    R_X86_64_64
diff --git a/lld/test/ELF/invalid/invalid-debug-relocations.test b/lld/test/ELF/invalid/invalid-debug-relocations.test
--- a/lld/test/ELF/invalid/invalid-debug-relocations.test
+++ b/lld/test/ELF/invalid/invalid-debug-relocations.test
@@ -26,8 +26,7 @@
     Link:            .symtab
     Info:            .debug_info
     Relocations:
-      - Offset:          0
-        Symbol:          _start
+      - Symbol:          _start
         Type:            0xFF
       - Offset:          4
         Symbol:          _start
diff --git a/lld/test/ELF/invalid/invalid-relocation-aarch64.test b/lld/test/ELF/invalid/invalid-relocation-aarch64.test
--- a/lld/test/ELF/invalid/invalid-relocation-aarch64.test
+++ b/lld/test/ELF/invalid/invalid-relocation-aarch64.test
@@ -19,11 +19,9 @@
     Link:            .symtab
     Info:            .text
     Relocations:
-      - Offset:          0x0000000000000000
-        Symbol:          foo
+      - Symbol:          foo
         Type:            0x400
-      - Offset:          0x0000000000000000
-        Symbol:          foo
+      - Symbol:          foo
         Type:            0x401
 Symbols:
   - Name:            foo
diff --git a/lld/test/ELF/invalid/invalid-relocation-x64.test b/lld/test/ELF/invalid/invalid-relocation-x64.test
--- a/lld/test/ELF/invalid/invalid-relocation-x64.test
+++ b/lld/test/ELF/invalid/invalid-relocation-x64.test
@@ -22,11 +22,9 @@
     Link:            .symtab
     Info:            .text
     Relocations:
-      - Offset:          0x0000000000000000
-        Symbol:          foo
+      - Symbol:          foo
         Type:            0x98
-      - Offset:          0x0000000000000000
-        Symbol:          foo
+      - Symbol:          foo
         Type:            0x99
 Symbols:
   - Name:            foo
diff --git a/lld/test/ELF/invalid/reloc-section-reordered.test b/lld/test/ELF/invalid/reloc-section-reordered.test
--- a/lld/test/ELF/invalid/reloc-section-reordered.test
+++ b/lld/test/ELF/invalid/reloc-section-reordered.test
@@ -20,8 +20,7 @@
     Info:            .text
     AddressAlign:    0x04
     Relocations:
-      - Offset:          0
-        Symbol:          .text
+      - Symbol:          .text
         Type:            R_X86_64_NONE
   - Type:            SHT_PROGBITS
     Name:            .text
diff --git a/lld/test/ELF/relocation-b-aarch64.test b/lld/test/ELF/relocation-b-aarch64.test
--- a/lld/test/ELF/relocation-b-aarch64.test
+++ b/lld/test/ELF/relocation-b-aarch64.test
@@ -30,8 +30,7 @@
     Link:            .symtab
     Info:            .text
     Relocations:
-      - Offset:          0
-        Symbol:          bar
+      - Symbol:          bar
         Type:            R_AARCH64_JUMP26
       - Offset:          4
         Symbol:          foo
diff --git a/lld/test/ELF/relocation-group.test b/lld/test/ELF/relocation-group.test
--- a/lld/test/ELF/relocation-group.test
+++ b/lld/test/ELF/relocation-group.test
@@ -35,8 +35,7 @@
     Link:            .symtab
     Info:            .text.foo
     Relocations:
-      - Offset:          0x0000000000000000
-        Symbol:          foo
+      - Symbol:          foo
         Type:            R_X86_64_64
 Symbols:
   - Name:    foo
diff --git a/lld/test/ELF/shf-info-link.test b/lld/test/ELF/shf-info-link.test
--- a/lld/test/ELF/shf-info-link.test
+++ b/lld/test/ELF/shf-info-link.test
@@ -24,8 +24,7 @@
     Link:            .symtab
     Info:            .text
     Relocations:
-      - Offset:          0x0000000000000000
-        Symbol:          foo
+      - Symbol:          foo
         Type:            R_X86_64_64
 Symbols:
   - Name:           foo
diff --git a/lld/test/ELF/sht-group-empty.test b/lld/test/ELF/sht-group-empty.test
--- a/lld/test/ELF/sht-group-empty.test
+++ b/lld/test/ELF/sht-group-empty.test
@@ -37,8 +37,7 @@
     Link:            .symtab
     Info:            .text.foo
     Relocations:
-      - Offset:          0x0000000000000000
-        Symbol:          foo
+      - Symbol:          foo
         Type:            R_X86_64_64
   - Name:            .rela.text.bar
     Type:            SHT_RELA
@@ -46,8 +45,7 @@
     Link:            .symtab
     Info:            .text.bar
     Relocations:
-      - Offset:          0x0000000000000000
-        Symbol:          bar
+      - Symbol:          bar
         Type:            R_X86_64_64
 Symbols:
   - Name:            foo
diff --git a/lld/test/ELF/undef-broken-debug.test b/lld/test/ELF/undef-broken-debug.test
--- a/lld/test/ELF/undef-broken-debug.test
+++ b/lld/test/ELF/undef-broken-debug.test
@@ -25,9 +25,8 @@
     Link:            .symtab
     Info:            .text
     Relocations:
-      - Offset:          0x0000000000000000
-        Symbol:          bar
-        Type:            R_X86_64_64
+      - Symbol:      bar
+        Type:        R_X86_64_64
   - Name:            .debug_line
     Type:            SHT_PROGBITS
     Content:         3300000002001C0000000101FB0E0D000101010100000001000001006162632E7300000000000009020000000000000000140208000101
diff --git a/lld/test/ELF/undef-not-suggest.test b/lld/test/ELF/undef-not-suggest.test
--- a/lld/test/ELF/undef-not-suggest.test
+++ b/lld/test/ELF/undef-not-suggest.test
@@ -33,14 +33,12 @@
     Relocations:
       ## Relocation which references ".text.foo". Check we don't suggest the
       ## section symbol for ".data", which has an empty name.
-      - Offset: 0x0
+      - Type:   R_X86_64_64
         ## .text.foo
         Symbol: 1
-        Type:   R_X86_64_64
       ## Relocation which references "foo". Check we don't suggest "for".
-      - Offset: 0x8
+      - Type:   R_X86_64_64
         Symbol: foo
-        Type:   R_X86_64_64
   - Name: .data
     Type: SHT_PROGBITS
 Symbols:
diff --git a/llvm/lib/ObjectYAML/ELFYAML.cpp b/llvm/lib/ObjectYAML/ELFYAML.cpp
--- a/llvm/lib/ObjectYAML/ELFYAML.cpp
+++ b/llvm/lib/ObjectYAML/ELFYAML.cpp
@@ -1568,7 +1568,7 @@
   const auto *Object = static_cast<ELFYAML::Object *>(IO.getContext());
   assert(Object && "The IO context is not initialized");
 
-  IO.mapRequired("Offset", Rel.Offset);
+  IO.mapOptional("Offset", Rel.Offset, (Hex64)0);
   IO.mapOptional("Symbol", Rel.Symbol);
 
   if (Object->Header.Machine == ELFYAML::ELF_EM(ELF::EM_MIPS) &&
diff --git a/llvm/test/Object/AArch64/yaml2obj-elf-aarch64-rel.yaml b/llvm/test/Object/AArch64/yaml2obj-elf-aarch64-rel.yaml
--- a/llvm/test/Object/AArch64/yaml2obj-elf-aarch64-rel.yaml
+++ b/llvm/test/Object/AArch64/yaml2obj-elf-aarch64-rel.yaml
@@ -8,8 +8,7 @@
 # CHECK-NEXT:    EntSize:         0x0000000000000018
 # CHECK-NEXT:    Info:            .text
 # CHECK-NEXT:    Relocations:     
-# CHECK-NEXT:      - Offset:          0x0000000000000000
-# CHECK-NEXT:        Symbol:          main
+# CHECK-NEXT:      - Symbol:          main
 # CHECK-NEXT:        Type:            R_AARCH64_ABS64
 # CHECK-NEXT:      - Offset:          0x0000000000000008
 # CHECK-NEXT:        Symbol:          main
@@ -33,8 +32,7 @@
     Info:            .text
     AddressAlign:    0x08
     Relocations:
-      - Offset:          0
-        Symbol:          main
+      - Symbol:          main
         Type:            R_AARCH64_ABS64
         Addend:          0
       - Offset:          8
diff --git a/llvm/test/Object/AMDGPU/elf64-relocs.yaml b/llvm/test/Object/AMDGPU/elf64-relocs.yaml
--- a/llvm/test/Object/AMDGPU/elf64-relocs.yaml
+++ b/llvm/test/Object/AMDGPU/elf64-relocs.yaml
@@ -37,8 +37,7 @@
     Info:            .text
     AddressAlign:    0x08
     Relocations:
-      - Offset:          0x0
-        Type:            R_AMDGPU_NONE
+      - Type:            R_AMDGPU_NONE
       - Offset:          0x2
         Type:            R_AMDGPU_ABS32_LO
       - Offset:          0x4
diff --git a/llvm/test/Object/Lanai/yaml2obj-elf-lanai-rel.yaml b/llvm/test/Object/Lanai/yaml2obj-elf-lanai-rel.yaml
--- a/llvm/test/Object/Lanai/yaml2obj-elf-lanai-rel.yaml
+++ b/llvm/test/Object/Lanai/yaml2obj-elf-lanai-rel.yaml
@@ -31,8 +31,7 @@
     Info:            .text
     AddressAlign:    0x04
     Relocations:
-      - Offset:          0x0
-        Symbol:          main
+      - Symbol:          main
         Type:            R_LANAI_32
       - Offset:          0x4
         Type:            R_LANAI_NONE
diff --git a/llvm/test/Object/X86/yaml2obj-elf-x86-rel.yaml b/llvm/test/Object/X86/yaml2obj-elf-x86-rel.yaml
--- a/llvm/test/Object/X86/yaml2obj-elf-x86-rel.yaml
+++ b/llvm/test/Object/X86/yaml2obj-elf-x86-rel.yaml
@@ -25,8 +25,7 @@
     Info:            .text
     AddressAlign:    0x04
     Relocations:
-      - Offset:          0
-        Symbol:          main
+      - Symbol:          main
         Type:            R_386_32
 
 Symbols:
diff --git a/llvm/test/Object/invalid-alignment.test b/llvm/test/Object/invalid-alignment.test
--- a/llvm/test/Object/invalid-alignment.test
+++ b/llvm/test/Object/invalid-alignment.test
@@ -25,5 +25,4 @@
     Type:            SHT_RELA
     Info:            .foo
     Relocations:
-      - Offset:          0
-        Type:            R_X86_64_NONE
+      - Type:        R_X86_64_NONE
diff --git a/llvm/test/Object/obj2yaml.test b/llvm/test/Object/obj2yaml.test
--- a/llvm/test/Object/obj2yaml.test
+++ b/llvm/test/Object/obj2yaml.test
@@ -365,8 +365,7 @@
 # ELF-MIPSEL-NEXT:     EntSize:         0x0000000000000008
 # ELF-MIPSEL-NEXT:     Info:            .text
 # ELF-MIPSEL-NEXT:     Relocations:
-# ELF-MIPSEL-NEXT:       - Offset:          0x0000000000000000
-# ELF-MIPSEL-NEXT:         Symbol:          _gp_disp
+# ELF-MIPSEL-NEXT:       - Symbol:          _gp_disp
 # ELF-MIPSEL-NEXT:         Type:            R_MIPS_HI16
 # ELF-MIPSEL-NEXT:       - Offset:          0x0000000000000004
 # ELF-MIPSEL-NEXT:         Symbol:          _gp_disp
@@ -487,8 +486,7 @@
 # ELF-MIPS64EL-NEXT:     EntSize:         0x0000000000000018
 # ELF-MIPS64EL-NEXT:     Info:            .data
 # ELF-MIPS64EL-NEXT:     Relocations:
-# ELF-MIPS64EL-NEXT:       - Offset:          0
-# ELF-MIPS64EL-NEXT:         Symbol:          zed
+# ELF-MIPS64EL-NEXT:       - Symbol:          zed
 # ELF-MIPS64EL-NEXT:         Type:            R_MIPS_64
 # ELF-MIPS64EL-NEXT:   - Name:            .bss
 # ELF-MIPS64EL-NEXT:     Type:            SHT_NOBITS
diff --git a/llvm/test/Object/objdump-relocations.test b/llvm/test/Object/objdump-relocations.test
--- a/llvm/test/Object/objdump-relocations.test
+++ b/llvm/test/Object/objdump-relocations.test
@@ -26,8 +26,7 @@
     Link: .symtab
     Info: .text
     Relocations:
-      - Offset: 0x0
-        Symbol: .section
+      - Symbol: .section
         Type:   R_386_32
       - Offset: 0x1
         Symbol: symbol
@@ -62,8 +61,7 @@
     Link: .symtab
     Info: .text
     Relocations:
-      - Offset: 0x0
-        Symbol: .section
+      - Symbol: .section
         Type:   R_X86_64_32S
       - Offset: 0x1
         Symbol: symbol
diff --git a/llvm/test/tools/llvm-readobj/ELF/broken-dynamic-reloc.test b/llvm/test/tools/llvm-readobj/ELF/broken-dynamic-reloc.test
--- a/llvm/test/tools/llvm-readobj/ELF/broken-dynamic-reloc.test
+++ b/llvm/test/tools/llvm-readobj/ELF/broken-dynamic-reloc.test
@@ -28,8 +28,7 @@
     Type:    SHT_RELA
     Link:    .dynsym
     Relocations:
-      - Offset: 0x0
-        Symbol: 1 ## Index of a dynamic symbol with a broken st_name.
+      - Symbol: 1 ## Index of a dynamic symbol with a broken st_name.
         Type:   R_X86_64_NONE
   - Name: .dynamic
     Type: SHT_DYNAMIC
@@ -67,8 +66,7 @@
   - Name:    .rela.dyn
     Type:    SHT_RELA
     Relocations:
-      - Offset: 0x0
-        Type:   R_X86_64_NONE
+      - Type:   R_X86_64_NONE
   - Name: .dynamic
     Type: SHT_DYNAMIC
     Entries:
@@ -104,8 +102,7 @@
   - Name:    .rela.dyn
     Type:    SHT_RELA
     Relocations:
-      - Offset: 0x0
-        Type:   R_X86_64_NONE
+      - Type:   R_X86_64_NONE
   - Name: .dynamic
     Type: SHT_DYNAMIC
     Entries:
@@ -141,8 +138,7 @@
   - Name:    .rela.dyn
     Type:    SHT_REL
     Relocations:
-      - Offset: 0x0
-        Type:   R_386_NONE
+      - Type:   R_386_NONE
   - Name: .dynamic
     Type: SHT_DYNAMIC
     Entries:
@@ -178,8 +174,7 @@
   - Name:    .rela.dyn
     Type:    SHT_REL
     Relocations:
-      - Offset: 0x0
-        Type:   R_386_NONE
+      - Type:   R_386_NONE
   - Name: .dynamic
     Type: SHT_DYNAMIC
     Entries:
@@ -354,8 +349,7 @@
   - Name:  .rela.plt
     Type:  SHT_RELA
     Relocations:
-      - Offset: 0x0
-        Type:   R_X86_64_NONE
+      - Type:   R_X86_64_NONE
   - Name:  .dynamic
     Type:  SHT_DYNAMIC
     Entries:
@@ -403,10 +397,8 @@
   - Name:    .rela.dyn
     Type:    SHT_RELA
     Relocations:
-      - Offset: 0x0
-        Type:   R_X86_64_NONE
-      - Offset: 0x0
-        Type:   R_X86_64_NONE
+      - Type:   R_X86_64_NONE
+      - Type:   R_X86_64_NONE
         Symbol: 0x1
   - Name: .dynamic
     Type: SHT_DYNAMIC
@@ -451,8 +443,7 @@
   - Name:    .rela.dyn
     Type:    SHT_RELA
     Relocations:
-      - Offset: 0x0
-        Type:   R_X86_64_NONE
+      - Type:   R_X86_64_NONE
         Symbol: 0x2
   - Name: .dynamic
     Type: SHT_DYNAMIC
diff --git a/llvm/test/tools/llvm-readobj/ELF/dynamic-reloc-no-section-headers.test b/llvm/test/tools/llvm-readobj/ELF/dynamic-reloc-no-section-headers.test
--- a/llvm/test/tools/llvm-readobj/ELF/dynamic-reloc-no-section-headers.test
+++ b/llvm/test/tools/llvm-readobj/ELF/dynamic-reloc-no-section-headers.test
@@ -29,8 +29,7 @@
   - Name:    .rela.dyn
     Type:    SHT_RELA
     Relocations:
-      - Offset: 0x0
-        Type:   R_X86_64_NONE
+      - Type:   R_X86_64_NONE
         Symbol: 0x1
   - Name: .dynamic
     Type: SHT_DYNAMIC
diff --git a/llvm/test/tools/llvm-readobj/ELF/reloc-types-elf-aarch64.test b/llvm/test/tools/llvm-readobj/ELF/reloc-types-elf-aarch64.test
--- a/llvm/test/tools/llvm-readobj/ELF/reloc-types-elf-aarch64.test
+++ b/llvm/test/tools/llvm-readobj/ELF/reloc-types-elf-aarch64.test
@@ -144,8 +144,7 @@
     EntSize:      0x0000000000000018
     Info:         .text
     Relocations:
-      - Offset: 0x0000000000000000
-        Type:   R_AARCH64_NONE
+      - Type:   R_AARCH64_NONE
       - Offset: 0x0000000000000004
         Type:   R_AARCH64_ABS64
       - Offset: 0x0000000000000008
diff --git a/llvm/test/tools/llvm-readobj/ELF/reloc-types-elf-arm.test b/llvm/test/tools/llvm-readobj/ELF/reloc-types-elf-arm.test
--- a/llvm/test/tools/llvm-readobj/ELF/reloc-types-elf-arm.test
+++ b/llvm/test/tools/llvm-readobj/ELF/reloc-types-elf-arm.test
@@ -153,8 +153,7 @@
     EntSize:      0x0000000000000008
     Info:         .text
     Relocations:
-      - Offset: 0x0000000000000000
-        Type:   R_ARM_NONE
+      - Type:   R_ARM_NONE
       - Offset: 0x0000000000000004
         Type:   R_ARM_PC24
       - Offset: 0x0000000000000008
diff --git a/llvm/test/tools/llvm-readobj/ELF/reloc-types-elf-lanai.test b/llvm/test/tools/llvm-readobj/ELF/reloc-types-elf-lanai.test
--- a/llvm/test/tools/llvm-readobj/ELF/reloc-types-elf-lanai.test
+++ b/llvm/test/tools/llvm-readobj/ELF/reloc-types-elf-lanai.test
@@ -30,8 +30,7 @@
     EntSize:      0x000000000000000C
     Info:         .text
     Relocations:
-      - Offset: 0x0000000000000000
-        Type:   R_LANAI_NONE
+      - Type:   R_LANAI_NONE
       - Offset: 0x0000000000000004
         Type:   R_LANAI_21
       - Offset: 0x0000000000000008
diff --git a/llvm/test/tools/llvm-readobj/ELF/reloc-types-elf-mips.test b/llvm/test/tools/llvm-readobj/ELF/reloc-types-elf-mips.test
--- a/llvm/test/tools/llvm-readobj/ELF/reloc-types-elf-mips.test
+++ b/llvm/test/tools/llvm-readobj/ELF/reloc-types-elf-mips.test
@@ -74,8 +74,7 @@
     EntSize:      0x0000000000000008
     Info:         .text
     Relocations:
-      - Offset: 0x0000000000000000
-        Type:   R_MIPS_NONE
+      - Type:   R_MIPS_NONE
       - Offset: 0x0000000000000004
         Type:   R_MIPS_16
       - Offset: 0x0000000000000008
diff --git a/llvm/test/tools/llvm-readobj/ELF/reloc-types-elf-mips64.test b/llvm/test/tools/llvm-readobj/ELF/reloc-types-elf-mips64.test
--- a/llvm/test/tools/llvm-readobj/ELF/reloc-types-elf-mips64.test
+++ b/llvm/test/tools/llvm-readobj/ELF/reloc-types-elf-mips64.test
@@ -74,8 +74,7 @@
     EntSize:      0x0000000000000018
     Info:         .text
     Relocations:
-      - Offset: 0x0000000000000000
-        Type:   R_MIPS_NONE
+      - Type:   R_MIPS_NONE
       - Offset: 0x0000000000000004
         Type:   R_MIPS_16
         Type2:  R_MIPS_16
diff --git a/llvm/test/tools/llvm-readobj/ELF/reloc-types-elf-ppc64.test b/llvm/test/tools/llvm-readobj/ELF/reloc-types-elf-ppc64.test
--- a/llvm/test/tools/llvm-readobj/ELF/reloc-types-elf-ppc64.test
+++ b/llvm/test/tools/llvm-readobj/ELF/reloc-types-elf-ppc64.test
@@ -108,189 +108,96 @@
   - Name: .rela.text
     Type: SHT_RELA
     Relocations:
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_NONE
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR32
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR24
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR16
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR16_LO
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR16_HI
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR16_HA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR14
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR14_BRTAKEN
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR14_BRNTAKEN
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_REL24
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_REL14
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_REL14_BRTAKEN
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_REL14_BRNTAKEN
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT16
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT16_LO
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT16_HI
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT16_HA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_COPY
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GLOB_DAT
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_JMP_SLOT
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_RELATIVE
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_REL32
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR64
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR16_HIGHER
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR16_HIGHERA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR16_HIGHEST
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR16_HIGHESTA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_REL64
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TOC16
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TOC16_LO
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TOC16_HI
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TOC16_HA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TOC
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR16_DS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR16_LO_DS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT16_DS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT16_LO_DS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TOC16_DS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TOC16_LO_DS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TLS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_DTPMOD64
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TPREL16
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TPREL16_LO
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TPREL16_HI
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TPREL16_HA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TPREL64
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_DTPREL16
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_DTPREL16_LO
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_DTPREL16_HI
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_DTPREL16_HA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_DTPREL64
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_TLSGD16
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_TLSGD16_LO
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_TLSGD16_HI
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_TLSGD16_HA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_TLSLD16
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_TLSLD16_LO
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_TLSLD16_HI
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_TLSLD16_HA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_TPREL16_DS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_TPREL16_LO_DS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_TPREL16_HI
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_TPREL16_HA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_DTPREL16_DS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_DTPREL16_LO_DS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_DTPREL16_HI
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_DTPREL16_HA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TPREL16_DS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TPREL16_LO_DS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TPREL16_HIGHER
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TPREL16_HIGHERA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TPREL16_HIGHEST
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TPREL16_HIGHESTA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_DTPREL16_DS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_DTPREL16_LO_DS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_DTPREL16_HIGHER
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_DTPREL16_HIGHERA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_DTPREL16_HIGHEST
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_DTPREL16_HIGHESTA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TLSGD
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TLSLD
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR16_HIGH
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR16_HIGHA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TPREL16_HIGH
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TPREL16_HIGHA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_DTPREL16_HIGH
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_DTPREL16_HIGHA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_IRELATIVE
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_REL16
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_REL16_LO
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_REL16_HI
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_REL16_HA
+      - Type: R_PPC64_NONE
+      - Type: R_PPC64_ADDR32
+      - Type: R_PPC64_ADDR24
+      - Type: R_PPC64_ADDR16
+      - Type: R_PPC64_ADDR16_LO
+      - Type: R_PPC64_ADDR16_HI
+      - Type: R_PPC64_ADDR16_HA
+      - Type: R_PPC64_ADDR14
+      - Type: R_PPC64_ADDR14_BRTAKEN
+      - Type: R_PPC64_ADDR14_BRNTAKEN
+      - Type: R_PPC64_REL24
+      - Type: R_PPC64_REL14
+      - Type: R_PPC64_REL14_BRTAKEN
+      - Type: R_PPC64_REL14_BRNTAKEN
+      - Type: R_PPC64_GOT16
+      - Type: R_PPC64_GOT16_LO
+      - Type: R_PPC64_GOT16_HI
+      - Type: R_PPC64_GOT16_HA
+      - Type: R_PPC64_COPY
+      - Type: R_PPC64_GLOB_DAT
+      - Type: R_PPC64_JMP_SLOT
+      - Type: R_PPC64_RELATIVE
+      - Type: R_PPC64_REL32
+      - Type: R_PPC64_ADDR64
+      - Type: R_PPC64_ADDR16_HIGHER
+      - Type: R_PPC64_ADDR16_HIGHERA
+      - Type: R_PPC64_ADDR16_HIGHEST
+      - Type: R_PPC64_ADDR16_HIGHESTA
+      - Type: R_PPC64_REL64
+      - Type: R_PPC64_TOC16
+      - Type: R_PPC64_TOC16_LO
+      - Type: R_PPC64_TOC16_HI
+      - Type: R_PPC64_TOC16_HA
+      - Type: R_PPC64_TOC
+      - Type: R_PPC64_ADDR16_DS
+      - Type: R_PPC64_ADDR16_LO_DS
+      - Type: R_PPC64_GOT16_DS
+      - Type: R_PPC64_GOT16_LO_DS
+      - Type: R_PPC64_TOC16_DS
+      - Type: R_PPC64_TOC16_LO_DS
+      - Type: R_PPC64_TLS
+      - Type: R_PPC64_DTPMOD64
+      - Type: R_PPC64_TPREL16
+      - Type: R_PPC64_TPREL16_LO
+      - Type: R_PPC64_TPREL16_HI
+      - Type: R_PPC64_TPREL16_HA
+      - Type: R_PPC64_TPREL64
+      - Type: R_PPC64_DTPREL16
+      - Type: R_PPC64_DTPREL16_LO
+      - Type: R_PPC64_DTPREL16_HI
+      - Type: R_PPC64_DTPREL16_HA
+      - Type: R_PPC64_DTPREL64
+      - Type: R_PPC64_GOT_TLSGD16
+      - Type: R_PPC64_GOT_TLSGD16_LO
+      - Type: R_PPC64_GOT_TLSGD16_HI
+      - Type: R_PPC64_GOT_TLSGD16_HA
+      - Type: R_PPC64_GOT_TLSLD16
+      - Type: R_PPC64_GOT_TLSLD16_LO
+      - Type: R_PPC64_GOT_TLSLD16_HI
+      - Type: R_PPC64_GOT_TLSLD16_HA
+      - Type: R_PPC64_GOT_TPREL16_DS
+      - Type: R_PPC64_GOT_TPREL16_LO_DS
+      - Type: R_PPC64_GOT_TPREL16_HI
+      - Type: R_PPC64_GOT_TPREL16_HA
+      - Type: R_PPC64_GOT_DTPREL16_DS
+      - Type: R_PPC64_GOT_DTPREL16_LO_DS
+      - Type: R_PPC64_GOT_DTPREL16_HI
+      - Type: R_PPC64_GOT_DTPREL16_HA
+      - Type: R_PPC64_TPREL16_DS
+      - Type: R_PPC64_TPREL16_LO_DS
+      - Type: R_PPC64_TPREL16_HIGHER
+      - Type: R_PPC64_TPREL16_HIGHERA
+      - Type: R_PPC64_TPREL16_HIGHEST
+      - Type: R_PPC64_TPREL16_HIGHESTA
+      - Type: R_PPC64_DTPREL16_DS
+      - Type: R_PPC64_DTPREL16_LO_DS
+      - Type: R_PPC64_DTPREL16_HIGHER
+      - Type: R_PPC64_DTPREL16_HIGHERA
+      - Type: R_PPC64_DTPREL16_HIGHEST
+      - Type: R_PPC64_DTPREL16_HIGHESTA
+      - Type: R_PPC64_TLSGD
+      - Type: R_PPC64_TLSLD
+      - Type: R_PPC64_ADDR16_HIGH
+      - Type: R_PPC64_ADDR16_HIGHA
+      - Type: R_PPC64_TPREL16_HIGH
+      - Type: R_PPC64_TPREL16_HIGHA
+      - Type: R_PPC64_DTPREL16_HIGH
+      - Type: R_PPC64_DTPREL16_HIGHA
+      - Type: R_PPC64_IRELATIVE
+      - Type: R_PPC64_REL16
+      - Type: R_PPC64_REL16_LO
+      - Type: R_PPC64_REL16_HI
+      - Type: R_PPC64_REL16_HA
diff --git a/llvm/test/tools/llvm-readobj/ELF/relocation-errors.test b/llvm/test/tools/llvm-readobj/ELF/relocation-errors.test
--- a/llvm/test/tools/llvm-readobj/ELF/relocation-errors.test
+++ b/llvm/test/tools/llvm-readobj/ELF/relocation-errors.test
@@ -47,11 +47,9 @@
     Info: .text
     Relocations:
 ## Case 1: There is no symbol with index 0xFEFEFEFE.
-      - Offset: 0x0
-        Symbol: 0xFEFEFEFE
+      - Symbol: 0xFEFEFEFE
         Type:   R_X86_64_NONE
-      - Offset: 0x0
-        Symbol: 0xFEFEFEFE
+      - Symbol: 0xFEFEFEFE
         Type:   R_X86_64_NONE
 ## Case 2: Test that no warning is reported for a relocation against a symbol with index 0.
       - Offset: 0x2
diff --git a/llvm/test/tools/llvm-readobj/ELF/relocations.test b/llvm/test/tools/llvm-readobj/ELF/relocations.test
--- a/llvm/test/tools/llvm-readobj/ELF/relocations.test
+++ b/llvm/test/tools/llvm-readobj/ELF/relocations.test
@@ -129,8 +129,7 @@
     Type: SHT_REL
     Info: .text
     Relocations:
-      - Offset: 0x0
-        Symbol: rel_0
+      - Symbol: rel_0
         Type:   R_X86_64_NONE
       - Offset: 0x1
         Symbol: rel_neg
@@ -145,8 +144,7 @@
     Type: SHT_RELA
     Info: .text
     Relocations:
-      - Offset: 0x0
-        Symbol: rela_0
+      - Symbol: rela_0
         Type:   R_X86_64_NONE
         Addend: 0
       - Offset: 0x1
@@ -315,8 +313,7 @@
     Type: SHT_REL
     Info: .text
     Relocations:
-      - Offset: 0x0
-        Symbol: rel_0
+      - Symbol: rel_0
         Type:   R_386_NONE
       - Offset: 0x1
         Symbol: rel_neg
@@ -328,8 +325,7 @@
     Type: SHT_RELA
     Info: .text
     Relocations:
-      - Offset: 0x0
-        Symbol: rela_0
+      - Symbol: rela_0
         Type:   R_386_NONE
         Addend: 0
       - Offset: 0x1
diff --git a/llvm/test/tools/obj2yaml/duplicate-symbol-and-section-names.test b/llvm/test/tools/obj2yaml/duplicate-symbol-and-section-names.test
--- a/llvm/test/tools/obj2yaml/duplicate-symbol-and-section-names.test
+++ b/llvm/test/tools/obj2yaml/duplicate-symbol-and-section-names.test
@@ -84,8 +84,7 @@
 # RUN: obj2yaml %t2 | FileCheck %s --check-prefix=CASE2
 
 # CASE2:      Relocations:
-# CASE2-NEXT:  - Offset: 0x0000000000000000
-# CASE2-NEXT:    Symbol: 'foo [1]'
+# CASE2-NEXT:  - Symbol: 'foo [1]'
 # CASE2-NEXT:    Type:   R_X86_64_PC32
 # CASE2-NEXT:  - Offset: 0x0000000000000004
 # CASE2-NEXT:    Symbol: foo
@@ -110,7 +109,6 @@
     Link: .symtab
     Relocations:
       - Type: R_X86_64_PC32
-        Offset: 0
         Symbol: 'foo [1]'
       - Type: R_X86_64_PC32
         Offset: 4
diff --git a/llvm/test/tools/obj2yaml/elf-ppc64-relocations.yaml b/llvm/test/tools/obj2yaml/elf-ppc64-relocations.yaml
--- a/llvm/test/tools/obj2yaml/elf-ppc64-relocations.yaml
+++ b/llvm/test/tools/obj2yaml/elf-ppc64-relocations.yaml
@@ -14,190 +14,98 @@
 # CHECK-NEXT:     Type:    SHT_RELA
 # CHECK-NEXT:     EntSize: 0x0000000000000018
 # CHECK-NEXT:     Relocations:
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_NONE
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_ADDR32
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_ADDR24
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_ADDR16
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_ADDR16_LO
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_ADDR16_HI
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_ADDR16_HA
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_ADDR14
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_ADDR14_BRTAKEN
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_ADDR14_BRNTAKEN
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_REL24
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_REL14
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_REL14_BRTAKEN
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_REL14_BRNTAKEN
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_GOT16
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_GOT16_LO
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_GOT16_HI
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_GOT16_HA
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_GLOB_DAT
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_JMP_SLOT
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_RELATIVE
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_REL32
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_ADDR64
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_ADDR16_HIGHER
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_ADDR16_HIGHERA
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_ADDR16_HIGHEST
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_ADDR16_HIGHESTA
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_REL64
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_TOC16
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_TOC16_LO
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_TOC16_HI
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_TOC16_HA
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_TOC
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_ADDR16_DS
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_ADDR16_LO_DS
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_GOT16_DS
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_GOT16_LO_DS
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_TOC16_DS
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_TOC16_LO_DS
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_TLS
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_DTPMOD64
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_TPREL16
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_TPREL16_LO
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_TPREL16_HI
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_TPREL16_HA
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_TPREL64
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_DTPREL16
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_DTPREL16_LO
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_DTPREL16_HI
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_DTPREL16_HA
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_DTPREL64
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_GOT_TLSGD16
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_GOT_TLSGD16_LO
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_GOT_TLSGD16_HI
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_GOT_TLSGD16_HA
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_GOT_TLSLD16
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_GOT_TLSLD16_LO
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_GOT_TLSLD16_HI
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_GOT_TLSLD16_HA
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_GOT_TPREL16_DS
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_GOT_TPREL16_LO_DS
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_GOT_TPREL16_HI
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_GOT_TPREL16_HA
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_GOT_DTPREL16_DS
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_GOT_DTPREL16_LO_DS
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_GOT_DTPREL16_HI
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_GOT_DTPREL16_HA
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_TPREL16_DS
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_TPREL16_LO_DS
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_TPREL16_HIGHER
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_TPREL16_HIGHERA
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_TPREL16_HIGHEST
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_TPREL16_HIGHESTA
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_DTPREL16_DS
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_DTPREL16_LO_DS
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_DTPREL16_HIGHER
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_DTPREL16_HIGHERA
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_DTPREL16_HIGHEST
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_DTPREL16_HIGHESTA
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_TLSGD
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_TLSLD
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_ADDR16_HIGH
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_ADDR16_HIGHA
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_TPREL16_HIGH
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_TPREL16_HIGHA
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_DTPREL16_HIGH
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_DTPREL16_HIGHA
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_IRELATIVE
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_REL16
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_REL16_LO
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_REL16_HI
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_PPC64_REL16_HA
+# CHECK-NEXT:       - Type: R_PPC64_NONE
+# CHECK-NEXT:       - Type: R_PPC64_ADDR32
+# CHECK-NEXT:       - Type: R_PPC64_ADDR24
+# CHECK-NEXT:       - Type: R_PPC64_ADDR16
+# CHECK-NEXT:       - Type: R_PPC64_ADDR16_LO
+# CHECK-NEXT:       - Type: R_PPC64_ADDR16_HI
+# CHECK-NEXT:       - Type: R_PPC64_ADDR16_HA
+# CHECK-NEXT:       - Type: R_PPC64_ADDR14
+# CHECK-NEXT:       - Type: R_PPC64_ADDR14_BRTAKEN
+# CHECK-NEXT:       - Type: R_PPC64_ADDR14_BRNTAKEN
+# CHECK-NEXT:       - Type: R_PPC64_REL24
+# CHECK-NEXT:       - Type: R_PPC64_REL14
+# CHECK-NEXT:       - Type: R_PPC64_REL14_BRTAKEN
+# CHECK-NEXT:       - Type: R_PPC64_REL14_BRNTAKEN
+# CHECK-NEXT:       - Type: R_PPC64_GOT16
+# CHECK-NEXT:       - Type: R_PPC64_GOT16_LO
+# CHECK-NEXT:       - Type: R_PPC64_GOT16_HI
+# CHECK-NEXT:       - Type: R_PPC64_GOT16_HA
+# CHECK-NEXT:       - Type: R_PPC64_GLOB_DAT
+# CHECK-NEXT:       - Type: R_PPC64_JMP_SLOT
+# CHECK-NEXT:       - Type: R_PPC64_RELATIVE
+# CHECK-NEXT:       - Type: R_PPC64_REL32
+# CHECK-NEXT:       - Type: R_PPC64_ADDR64
+# CHECK-NEXT:       - Type: R_PPC64_ADDR16_HIGHER
+# CHECK-NEXT:       - Type: R_PPC64_ADDR16_HIGHERA
+# CHECK-NEXT:       - Type: R_PPC64_ADDR16_HIGHEST
+# CHECK-NEXT:       - Type: R_PPC64_ADDR16_HIGHESTA
+# CHECK-NEXT:       - Type: R_PPC64_REL64
+# CHECK-NEXT:       - Type: R_PPC64_TOC16
+# CHECK-NEXT:       - Type: R_PPC64_TOC16_LO
+# CHECK-NEXT:       - Type: R_PPC64_TOC16_HI
+# CHECK-NEXT:       - Type: R_PPC64_TOC16_HA
+# CHECK-NEXT:       - Type: R_PPC64_TOC
+# CHECK-NEXT:       - Type: R_PPC64_ADDR16_DS
+# CHECK-NEXT:       - Type: R_PPC64_ADDR16_LO_DS
+# CHECK-NEXT:       - Type: R_PPC64_GOT16_DS
+# CHECK-NEXT:       - Type: R_PPC64_GOT16_LO_DS
+# CHECK-NEXT:       - Type: R_PPC64_TOC16_DS
+# CHECK-NEXT:       - Type: R_PPC64_TOC16_LO_DS
+# CHECK-NEXT:       - Type: R_PPC64_TLS
+# CHECK-NEXT:       - Type: R_PPC64_DTPMOD64
+# CHECK-NEXT:       - Type: R_PPC64_TPREL16
+# CHECK-NEXT:       - Type: R_PPC64_TPREL16_LO
+# CHECK-NEXT:       - Type: R_PPC64_TPREL16_HI
+# CHECK-NEXT:       - Type: R_PPC64_TPREL16_HA
+# CHECK-NEXT:       - Type: R_PPC64_TPREL64
+# CHECK-NEXT:       - Type: R_PPC64_DTPREL16
+# CHECK-NEXT:       - Type: R_PPC64_DTPREL16_LO
+# CHECK-NEXT:       - Type: R_PPC64_DTPREL16_HI
+# CHECK-NEXT:       - Type: R_PPC64_DTPREL16_HA
+# CHECK-NEXT:       - Type: R_PPC64_DTPREL64
+# CHECK-NEXT:       - Type: R_PPC64_GOT_TLSGD16
+# CHECK-NEXT:       - Type: R_PPC64_GOT_TLSGD16_LO
+# CHECK-NEXT:       - Type: R_PPC64_GOT_TLSGD16_HI
+# CHECK-NEXT:       - Type: R_PPC64_GOT_TLSGD16_HA
+# CHECK-NEXT:       - Type: R_PPC64_GOT_TLSLD16
+# CHECK-NEXT:       - Type: R_PPC64_GOT_TLSLD16_LO
+# CHECK-NEXT:       - Type: R_PPC64_GOT_TLSLD16_HI
+# CHECK-NEXT:       - Type: R_PPC64_GOT_TLSLD16_HA
+# CHECK-NEXT:       - Type: R_PPC64_GOT_TPREL16_DS
+# CHECK-NEXT:       - Type: R_PPC64_GOT_TPREL16_LO_DS
+# CHECK-NEXT:       - Type: R_PPC64_GOT_TPREL16_HI
+# CHECK-NEXT:       - Type: R_PPC64_GOT_TPREL16_HA
+# CHECK-NEXT:       - Type: R_PPC64_GOT_DTPREL16_DS
+# CHECK-NEXT:       - Type: R_PPC64_GOT_DTPREL16_LO_DS
+# CHECK-NEXT:       - Type: R_PPC64_GOT_DTPREL16_HI
+# CHECK-NEXT:       - Type: R_PPC64_GOT_DTPREL16_HA
+# CHECK-NEXT:       - Type: R_PPC64_TPREL16_DS
+# CHECK-NEXT:       - Type: R_PPC64_TPREL16_LO_DS
+# CHECK-NEXT:       - Type: R_PPC64_TPREL16_HIGHER
+# CHECK-NEXT:       - Type: R_PPC64_TPREL16_HIGHERA
+# CHECK-NEXT:       - Type: R_PPC64_TPREL16_HIGHEST
+# CHECK-NEXT:       - Type: R_PPC64_TPREL16_HIGHESTA
+# CHECK-NEXT:       - Type: R_PPC64_DTPREL16_DS
+# CHECK-NEXT:       - Type: R_PPC64_DTPREL16_LO_DS
+# CHECK-NEXT:       - Type: R_PPC64_DTPREL16_HIGHER
+# CHECK-NEXT:       - Type: R_PPC64_DTPREL16_HIGHERA
+# CHECK-NEXT:       - Type: R_PPC64_DTPREL16_HIGHEST
+# CHECK-NEXT:       - Type: R_PPC64_DTPREL16_HIGHESTA
+# CHECK-NEXT:       - Type: R_PPC64_TLSGD
+# CHECK-NEXT:       - Type: R_PPC64_TLSLD
+# CHECK-NEXT:       - Type: R_PPC64_ADDR16_HIGH
+# CHECK-NEXT:       - Type: R_PPC64_ADDR16_HIGHA
+# CHECK-NEXT:       - Type: R_PPC64_TPREL16_HIGH
+# CHECK-NEXT:       - Type: R_PPC64_TPREL16_HIGHA
+# CHECK-NEXT:       - Type: R_PPC64_DTPREL16_HIGH
+# CHECK-NEXT:       - Type: R_PPC64_DTPREL16_HIGHA
+# CHECK-NEXT:       - Type: R_PPC64_IRELATIVE
+# CHECK-NEXT:       - Type: R_PPC64_REL16
+# CHECK-NEXT:       - Type: R_PPC64_REL16_LO
+# CHECK-NEXT:       - Type: R_PPC64_REL16_HI
+# CHECK-NEXT:       - Type: R_PPC64_REL16_HA
 
 --- !ELF
 FileHeader:
@@ -209,187 +117,95 @@
   - Name: .rela.text
     Type: SHT_RELA
     Relocations:
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_NONE
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR32
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR24
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR16
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR16_LO
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR16_HI
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR16_HA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR14
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR14_BRTAKEN
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR14_BRNTAKEN
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_REL24
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_REL14
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_REL14_BRTAKEN
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_REL14_BRNTAKEN
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT16
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT16_LO
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT16_HI
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT16_HA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GLOB_DAT
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_JMP_SLOT
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_RELATIVE
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_REL32
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR64
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR16_HIGHER
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR16_HIGHERA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR16_HIGHEST
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR16_HIGHESTA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_REL64
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TOC16
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TOC16_LO
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TOC16_HI
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TOC16_HA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TOC
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR16_DS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR16_LO_DS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT16_DS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT16_LO_DS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TOC16_DS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TOC16_LO_DS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TLS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_DTPMOD64
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TPREL16
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TPREL16_LO
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TPREL16_HI
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TPREL16_HA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TPREL64
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_DTPREL16
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_DTPREL16_LO
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_DTPREL16_HI
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_DTPREL16_HA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_DTPREL64
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_TLSGD16
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_TLSGD16_LO
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_TLSGD16_HI
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_TLSGD16_HA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_TLSLD16
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_TLSLD16_LO
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_TLSLD16_HI
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_TLSLD16_HA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_TPREL16_DS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_TPREL16_LO_DS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_TPREL16_HI
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_TPREL16_HA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_DTPREL16_DS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_DTPREL16_LO_DS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_DTPREL16_HI
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_GOT_DTPREL16_HA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TPREL16_DS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TPREL16_LO_DS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TPREL16_HIGHER
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TPREL16_HIGHERA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TPREL16_HIGHEST
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TPREL16_HIGHESTA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_DTPREL16_DS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_DTPREL16_LO_DS
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_DTPREL16_HIGHER
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_DTPREL16_HIGHERA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_DTPREL16_HIGHEST
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_DTPREL16_HIGHESTA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TLSGD
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TLSLD
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR16_HIGH
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_ADDR16_HIGHA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TPREL16_HIGH
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_TPREL16_HIGHA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_DTPREL16_HIGH
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_DTPREL16_HIGHA
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_IRELATIVE
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_REL16
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_REL16_LO
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_REL16_HI
-      - Offset: 0x0000000000000000
-        Type:   R_PPC64_REL16_HA
+      - Type: R_PPC64_NONE
+      - Type: R_PPC64_ADDR32
+      - Type: R_PPC64_ADDR24
+      - Type: R_PPC64_ADDR16
+      - Type: R_PPC64_ADDR16_LO
+      - Type: R_PPC64_ADDR16_HI
+      - Type: R_PPC64_ADDR16_HA
+      - Type: R_PPC64_ADDR14
+      - Type: R_PPC64_ADDR14_BRTAKEN
+      - Type: R_PPC64_ADDR14_BRNTAKEN
+      - Type: R_PPC64_REL24
+      - Type: R_PPC64_REL14
+      - Type: R_PPC64_REL14_BRTAKEN
+      - Type: R_PPC64_REL14_BRNTAKEN
+      - Type: R_PPC64_GOT16
+      - Type: R_PPC64_GOT16_LO
+      - Type: R_PPC64_GOT16_HI
+      - Type: R_PPC64_GOT16_HA
+      - Type: R_PPC64_GLOB_DAT
+      - Type: R_PPC64_JMP_SLOT
+      - Type: R_PPC64_RELATIVE
+      - Type: R_PPC64_REL32
+      - Type: R_PPC64_ADDR64
+      - Type: R_PPC64_ADDR16_HIGHER
+      - Type: R_PPC64_ADDR16_HIGHERA
+      - Type: R_PPC64_ADDR16_HIGHEST
+      - Type: R_PPC64_ADDR16_HIGHESTA
+      - Type: R_PPC64_REL64
+      - Type: R_PPC64_TOC16
+      - Type: R_PPC64_TOC16_LO
+      - Type: R_PPC64_TOC16_HI
+      - Type: R_PPC64_TOC16_HA
+      - Type: R_PPC64_TOC
+      - Type: R_PPC64_ADDR16_DS
+      - Type: R_PPC64_ADDR16_LO_DS
+      - Type: R_PPC64_GOT16_DS
+      - Type: R_PPC64_GOT16_LO_DS
+      - Type: R_PPC64_TOC16_DS
+      - Type: R_PPC64_TOC16_LO_DS
+      - Type: R_PPC64_TLS
+      - Type: R_PPC64_DTPMOD64
+      - Type: R_PPC64_TPREL16
+      - Type: R_PPC64_TPREL16_LO
+      - Type: R_PPC64_TPREL16_HI
+      - Type: R_PPC64_TPREL16_HA
+      - Type: R_PPC64_TPREL64
+      - Type: R_PPC64_DTPREL16
+      - Type: R_PPC64_DTPREL16_LO
+      - Type: R_PPC64_DTPREL16_HI
+      - Type: R_PPC64_DTPREL16_HA
+      - Type: R_PPC64_DTPREL64
+      - Type: R_PPC64_GOT_TLSGD16
+      - Type: R_PPC64_GOT_TLSGD16_LO
+      - Type: R_PPC64_GOT_TLSGD16_HI
+      - Type: R_PPC64_GOT_TLSGD16_HA
+      - Type: R_PPC64_GOT_TLSLD16
+      - Type: R_PPC64_GOT_TLSLD16_LO
+      - Type: R_PPC64_GOT_TLSLD16_HI
+      - Type: R_PPC64_GOT_TLSLD16_HA
+      - Type: R_PPC64_GOT_TPREL16_DS
+      - Type: R_PPC64_GOT_TPREL16_LO_DS
+      - Type: R_PPC64_GOT_TPREL16_HI
+      - Type: R_PPC64_GOT_TPREL16_HA
+      - Type: R_PPC64_GOT_DTPREL16_DS
+      - Type: R_PPC64_GOT_DTPREL16_LO_DS
+      - Type: R_PPC64_GOT_DTPREL16_HI
+      - Type: R_PPC64_GOT_DTPREL16_HA
+      - Type: R_PPC64_TPREL16_DS
+      - Type: R_PPC64_TPREL16_LO_DS
+      - Type: R_PPC64_TPREL16_HIGHER
+      - Type: R_PPC64_TPREL16_HIGHERA
+      - Type: R_PPC64_TPREL16_HIGHEST
+      - Type: R_PPC64_TPREL16_HIGHESTA
+      - Type: R_PPC64_DTPREL16_DS
+      - Type: R_PPC64_DTPREL16_LO_DS
+      - Type: R_PPC64_DTPREL16_HIGHER
+      - Type: R_PPC64_DTPREL16_HIGHERA
+      - Type: R_PPC64_DTPREL16_HIGHEST
+      - Type: R_PPC64_DTPREL16_HIGHESTA
+      - Type: R_PPC64_TLSGD
+      - Type: R_PPC64_TLSLD
+      - Type: R_PPC64_ADDR16_HIGH
+      - Type: R_PPC64_ADDR16_HIGHA
+      - Type: R_PPC64_TPREL16_HIGH
+      - Type: R_PPC64_TPREL16_HIGHA
+      - Type: R_PPC64_DTPREL16_HIGH
+      - Type: R_PPC64_DTPREL16_HIGHA
+      - Type: R_PPC64_IRELATIVE
+      - Type: R_PPC64_REL16
+      - Type: R_PPC64_REL16_LO
+      - Type: R_PPC64_REL16_HI
+      - Type: R_PPC64_REL16_HA
diff --git a/llvm/test/tools/obj2yaml/no-symbol-reloc.test b/llvm/test/tools/obj2yaml/no-symbol-reloc.test
--- a/llvm/test/tools/obj2yaml/no-symbol-reloc.test
+++ b/llvm/test/tools/obj2yaml/no-symbol-reloc.test
@@ -19,8 +19,7 @@
 # CHECK-NEXT:     EntSize: 0x0000000000000018
 # CHECK-NEXT:     Info:    .text
 # CHECK-NEXT:     Relocations:
-# CHECK-NEXT:       - Offset: 0x0000000000000000
-# CHECK-NEXT:         Type:   R_X86_64_NONE
+# CHECK-NEXT:       - Type:   R_X86_64_NONE
 # CHECK-NEXT:       - Offset: 0x0000000000000004
 # CHECK-NEXT:         Type:   R_X86_64_NONE
 # CHECK-NEXT: ...
@@ -39,8 +38,7 @@
     Type:  SHT_RELA
     Info:  .text
     Relocations:
-      - Offset: 0x0
-        Type:   R_X86_64_NONE
+      - Type:   R_X86_64_NONE
       - Offset: 0x4
         Type:   R_X86_64_NONE
         Symbol: 0
diff --git a/llvm/test/tools/yaml2obj/ELF/duplicate-symbol-names.yaml b/llvm/test/tools/yaml2obj/ELF/duplicate-symbol-names.yaml
--- a/llvm/test/tools/yaml2obj/ELF/duplicate-symbol-names.yaml
+++ b/llvm/test/tools/yaml2obj/ELF/duplicate-symbol-names.yaml
@@ -90,8 +90,7 @@
     Info: .text
     Link: .symtab
     Relocations:
-      - Offset: 0x0
-        Type:   R_X86_64_NONE
+      - Type:   R_X86_64_NONE
         Symbol: foo
       - Offset: 0x1
         Type:   R_X86_64_NONE
diff --git a/llvm/test/tools/yaml2obj/ELF/dynamic-relocations.yaml b/llvm/test/tools/yaml2obj/ELF/dynamic-relocations.yaml
--- a/llvm/test/tools/yaml2obj/ELF/dynamic-relocations.yaml
+++ b/llvm/test/tools/yaml2obj/ELF/dynamic-relocations.yaml
@@ -28,8 +28,7 @@
     Link: .dynsym
     Info: .data
     Relocations:
-      - Offset: 0
-        Type: R_X86_64_NONE
+      - Type: R_X86_64_NONE
         Symbol: dynamic
       - Offset: 8
         Type: R_X86_64_NONE
diff --git a/llvm/test/tools/yaml2obj/ELF/relocation-explicit-symbol-index.yaml b/llvm/test/tools/yaml2obj/ELF/relocation-explicit-symbol-index.yaml
--- a/llvm/test/tools/yaml2obj/ELF/relocation-explicit-symbol-index.yaml
+++ b/llvm/test/tools/yaml2obj/ELF/relocation-explicit-symbol-index.yaml
@@ -27,10 +27,8 @@
     Link: .symtab
     Relocations:
       - Type: R_X86_64_PC32
-        Offset: 0
         Symbol: 0x42
       - Type: R_X86_64_PC32
-        Offset: 0
         Symbol: 0x1
 Symbols:
   - Name: foo
diff --git a/llvm/test/tools/yaml2obj/ELF/relocation-missing-symbol.yaml b/llvm/test/tools/yaml2obj/ELF/relocation-missing-symbol.yaml
--- a/llvm/test/tools/yaml2obj/ELF/relocation-missing-symbol.yaml
+++ b/llvm/test/tools/yaml2obj/ELF/relocation-missing-symbol.yaml
@@ -23,8 +23,6 @@
     Link: .symtab
     Relocations:
       - Type: R_X86_64_PC32
-        Offset: 0
         Symbol: does_not_exist1
       - Type: R_X86_64_PC32
-        Offset: 0
         Symbol: does_not_exist2
diff --git a/llvm/test/tools/yaml2obj/ELF/symbol-name.yaml b/llvm/test/tools/yaml2obj/ELF/symbol-name.yaml
--- a/llvm/test/tools/yaml2obj/ELF/symbol-name.yaml
+++ b/llvm/test/tools/yaml2obj/ELF/symbol-name.yaml
@@ -76,8 +76,7 @@
   - Name: .rela.data
     Type: SHT_RELA
     Relocations:
-      - Offset: 0x0
-        Type:   R_X86_64_NONE
+      - Type:   R_X86_64_NONE
         Symbol: foo
 Symbols:
   - Name:   foo