[ELF] Fix lld when no unique sections is used
authorSimon Atanasyan <simon@atanasyan.com>
Sun, 24 May 2015 16:19:27 +0000 (16:19 +0000)
committerSimon Atanasyan <simon@atanasyan.com>
Sun, 24 May 2015 16:19:27 +0000 (16:19 +0000)
commit0b223598587590dbf52ec7b0842a69e65b5a8f3a
tree432bc07d0184551691c5e2ca3e888eed0c6d7506
parent1a65e4ade4e77ad56a57502dcb0cb21b2850df7a
[ELF] Fix lld when no unique sections is used

Original patch of Shankar Easwaran with additional test case.
The yaml2obj does not allow to create an object file with non-unique
sections names so the fix uses a binary input object file in the test
case.

llvm-svn: 238115
lld/lib/ReaderWriter/ELF/ELFFile.cpp
lld/lib/ReaderWriter/ELF/ELFFile.h
lld/test/elf/Inputs/no-unique-section-names.x86-64 [new file with mode: 0644]
lld/test/elf/no-unique-section-names.test [new file with mode: 0644]