[all-commits] [llvm/llvm-project] 965946: [yaml2obj/obj2yaml] - Add support for SHT_LLVM_DEP...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Mon Nov 25 01:58:06 PST 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 9659464d7e7f30c6a1cee07c739dfe8f812924fd
      https://github.com/llvm/llvm-project/commit/9659464d7e7f30c6a1cee07c739dfe8f812924fd
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2019-11-25 (Mon, 25 Nov 2019)

  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/llvm-deplibs-section.yaml
    A llvm/test/tools/yaml2obj/ELF/llvm-deplibs-section.yaml
    M llvm/tools/obj2yaml/elf2yaml.cpp

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

This section contains strings specifying libraries to be added to the link by the linker.
The strings are encoded as standard null-terminated UTF-8 strings.

This patch adds a way to describe and dump SHT_LLVM_DEPENDENT_LIBRARIES sections.

I introduced a new YAMLFlowString type here. That used to teach obj2yaml to dump
them like:

```
Libraries: [ foo, bar ]
```

instead of the following (if StringRef would be used):

```
Libraries:
  - foo
  - bar
```

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




More information about the All-commits mailing list