summaryrefslogtreecommitdiff
path: root/test/Object/yaml2obj-elf-symbol-basic.yaml
diff options
context:
space:
mode:
authorSean Silva <silvas@purdue.edu>2013-06-22 01:38:00 +0000
committerSean Silva <silvas@purdue.edu>2013-06-22 01:38:00 +0000
commit068463b714bd53fffd41322a5654b4f359c2166c (patch)
tree78bbe3b036bd29783bed1505bfaab0162b42611d /test/Object/yaml2obj-elf-symbol-basic.yaml
parent681dafbb6c605b96b141accf428923076606ec9e (diff)
downloadllvm-068463b714bd53fffd41322a5654b4f359c2166c.tar.gz
llvm-068463b714bd53fffd41322a5654b4f359c2166c.tar.bz2
llvm-068463b714bd53fffd41322a5654b4f359c2166c.tar.xz
[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
Diffstat (limited to 'test/Object/yaml2obj-elf-symbol-basic.yaml')
-rw-r--r--test/Object/yaml2obj-elf-symbol-basic.yaml18
1 files changed, 8 insertions, 10 deletions
diff --git a/test/Object/yaml2obj-elf-symbol-basic.yaml b/test/Object/yaml2obj-elf-symbol-basic.yaml
index d54e2f05c3..3fb9b17655 100644
--- a/test/Object/yaml2obj-elf-symbol-basic.yaml
+++ b/test/Object/yaml2obj-elf-symbol-basic.yaml
@@ -16,16 +16,14 @@ Sections:
# This YAML file is a valid relocatable object that,
# when linked and run on x86_64, will go into an
# infloop.
- - Name: .symtab
- Type: SHT_SYMTAB
- Symbols:
- Global:
- - Name: main
- Type: STT_FUNC
- Section: .text
- Value: 0x1
- Size: 2
- - Name: undefined_symbol
+Symbols:
+ Global:
+ - Name: main
+ Type: STT_FUNC
+ Section: .text
+ Value: 0x1
+ Size: 2
+ - Name: undefined_symbol
# CHECK: Symbols [
# CHECK-NEXT: Symbol {