From e38f640b22979994b42fb2f2aafc44cc39c20e8e Mon Sep 17 00:00:00 2001 From: Sean Silva Date: Thu, 20 Jun 2013 20:59:47 +0000 Subject: [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 --- tools/yaml2obj/yaml2elf.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tools/yaml2obj') diff --git a/tools/yaml2obj/yaml2elf.cpp b/tools/yaml2obj/yaml2elf.cpp index 421781c..a8eeeea 100644 --- a/tools/yaml2obj/yaml2elf.cpp +++ b/tools/yaml2obj/yaml2elf.cpp @@ -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); } -- cgit v1.1