[yaml2obj][ELF] Refer specifically to the section header string table.
authorSean Silva <silvas@purdue.edu>
Tue, 18 Jun 2013 01:11:24 +0000 (01:11 +0000)
committerSean Silva <silvas@purdue.edu>
Tue, 18 Jun 2013 01:11:24 +0000 (01:11 +0000)
commit7dc89c1f3ab870e5f517aa201d98befd6249ed5f
treef8da614654bebf82e5da388452077131e0996630
parent13a8e2da7636b9f90d10cd77ac2a9194aa492cb4
[yaml2obj][ELF] Refer specifically to the section header string table.

A bug in libObject will cause it to assert() if a symbol table's string
table and the section header string table are the same section, so we
need to ensure that we emit two different string tables (among other
things). The problematic code is the hardcoded usage of ".strtab"
(`dot_strtab_sec`) for looking up symbol names in
ELFObjectFile<ELFT>::getSymbolName.

I discussed this with Michael, and he has some local improvements to the
ELF code in libObject that, among other things, should fix our handling
of this scenario.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184161 91177308-0d34-0410-b5e6-96231b3b80d8
tools/yaml2obj/yaml2elf.cpp