[yaml2obj][ELF] Add support for st_value and st_size.

After this patch, the ELF file produced by
`yaml2obj-elf-symbol-basic.yaml`, when linked and executed on x86_64
(under SysV ABI, obviously; I tested on Linux), produces a working
executable that goes into an infinite loop!

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184469 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Sean Silva
2013-06-20 20:59:47 +00:00
parent 6525e92b32
commit e38f640b22
4 changed files with 22 additions and 0 deletions
+2
View File
@@ -206,6 +206,8 @@ static void handleSymtabSectionHeader(
exit(1);
}
Symbol.st_shndx = Index;
Symbol.st_value = Sym.Value;
Symbol.st_size = Sym.Size;
Syms.push_back(Symbol);
}