OSDN Git Service

[yaml2obj/obj2yaml] - Allow having the symbols and sections with duplicated names.
authorGeorge Rimar <grimar@accesssoftek.com>
Tue, 25 Jun 2019 08:22:57 +0000 (08:22 +0000)
committerGeorge Rimar <grimar@accesssoftek.com>
Tue, 25 Jun 2019 08:22:57 +0000 (08:22 +0000)
commit6e6460f88c0205bc289e8891473b6a2cbb702222
tree124486588e022ffc79fae13003f6ebda4153265c
parent6ef46a770d19c3d15c0abb1eb61af813c8a5d441
[yaml2obj/obj2yaml] - Allow having the symbols and sections with duplicated names.

The patch teaches yaml2obj/obj2yaml to support parsing/dumping
the sections and symbols with the same name.
A special suffix is added to a name to make it unique.

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@364282 91177308-0d34-0410-b5e6-96231b3b80d8
test/Object/X86/obj2yaml-dup-section-name.s
test/tools/obj2yaml/duplicate-symbol-and-section-names.test [new file with mode: 0644]
test/tools/yaml2obj/duplicate-section-names.test [new file with mode: 0644]
test/tools/yaml2obj/duplicate-symbol-names.test [new file with mode: 0644]
tools/obj2yaml/elf2yaml.cpp
tools/yaml2obj/yaml2elf.cpp