[yaml2obj][ELF] Make symbol table top-level key.
authorSean Silva <silvas@purdue.edu>
Sat, 22 Jun 2013 01:38:00 +0000 (01:38 +0000)
committerSean Silva <silvas@purdue.edu>
Sat, 22 Jun 2013 01:38:00 +0000 (01:38 +0000)
commit068463b714bd53fffd41322a5654b4f359c2166c
tree78bbe3b036bd29783bed1505bfaab0162b42611d
parent681dafbb6c605b96b141accf428923076606ec9e
[yaml2obj][ELF] Make symbol table top-level key.

Although in reality the symbol table in ELF resides in a section, the
standard requires that there be no more than one SHT_SYMTAB. To enforce
this constraint, it is cleaner to group all the symbols under a
top-level `Symbols` key on the object file.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184627 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Object/ELFYAML.h
lib/Object/ELFYAML.cpp
test/Object/yaml2obj-elf-symbol-LocalGlobalWeak.yaml
test/Object/yaml2obj-elf-symbol-basic.yaml
tools/yaml2obj/yaml2elf.cpp