[PATCH] D70598: [yaml2obj/obj2yaml] - Add support for SHT_LLVM_DEPENDENT_LIBRARIES sections.
George Rimar via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Nov 22 06:51:04 PST 2019
grimar created this revision.
grimar added reviewers: jhenderson, MaskRay.
Herald added subscribers: hiraditya, arichardson, emaste.
Herald added a reviewer: espindola.
Herald added a project: LLVM.
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
https://reviews.llvm.org/D70598
Files:
llvm/include/llvm/ObjectYAML/ELFYAML.h
llvm/lib/ObjectYAML/ELFEmitter.cpp
llvm/lib/ObjectYAML/ELFYAML.cpp
llvm/test/tools/obj2yaml/llvm-deplibs-section.yaml
llvm/test/tools/yaml2obj/ELF/llvm-deplibs-section.yaml
llvm/tools/obj2yaml/elf2yaml.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70598.230642.patch
Type: text/x-patch
Size: 11906 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191122/dec2a2b0/attachment-0001.bin>
More information about the llvm-commits
mailing list