[elf] Remove one copy of the section merging code
authorPavel Labath <labath@google.com>
Fri, 9 Mar 2018 12:30:09 +0000 (12:30 +0000)
committerPavel Labath <labath@google.com>
Fri, 9 Mar 2018 12:30:09 +0000 (12:30 +0000)
commit3ef4eebc2713aaf1e05cd8d75215f85e57313c0e
treec6ebae281b1bc4e37f2db0b017b1fadea024d647
parent3aa75a7f9b77042ff9ac5e8d1104a3e9dc061d69
[elf] Remove one copy of the section merging code

Summary:
Besides being superfluous, this double merging was actually wrong and
causing some sections to be added twice. The reason for that was that
the code assumes section IDs are unique in the section list, but this is
only true if all sections in the list come from the same object file.

Reviewers: fjricci, jankratochvil

Subscribers: emaste, lldb-commits, arichardson

Differential Revision: https://reviews.llvm.org/D44157

llvm-svn: 327123
lldb/lit/Modules/elf-duplicate-section.yaml [new file with mode: 0644]
lldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp