[all-commits] [llvm/llvm-project] 46d11e: [yaml2obj/obj2yaml] - Add support for SHT_RELR sec...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Wed Jan 15 02:54:27 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 46d11e30ee807accefd14e0b7f306647963a39b5
      https://github.com/llvm/llvm-project/commit/46d11e30ee807accefd14e0b7f306647963a39b5
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-01-15 (Wed, 15 Jan 2020)

  Changed paths:
    M llvm/include/llvm/ObjectYAML/ELFYAML.h
    M llvm/lib/ObjectYAML/ELFEmitter.cpp
    M llvm/lib/ObjectYAML/ELFYAML.cpp
    A llvm/test/tools/obj2yaml/relr-section.yaml
    A llvm/test/tools/yaml2obj/ELF/relr-section.yaml
    M llvm/tools/obj2yaml/elf2yaml.cpp

  Log Message:
  -----------
  [yaml2obj/obj2yaml] - Add support for SHT_RELR sections.

The encoded sequence of Elf*_Relr entries in a SHT_RELR section looks
like [ AAAAAAAA BBBBBBB1 BBBBBBB1 ... AAAAAAAA BBBBBB1 ... ]
i.e. start with an address, followed by any number of bitmaps. The address
entry encodes 1 relocation. The subsequent bitmap entries encode up to 63(31)
relocations each, at subsequent offsets following the last address entry.

More information is here:
https://github.com/llvm-mirror/llvm/blob/master/lib/Object/ELF.cpp#L272

This patch adds a support for these sections.

Differential revision: https://reviews.llvm.org/D71872




More information about the All-commits mailing list