diff options
author | Sean Silva <silvas@purdue.edu> | 2013-06-20 20:59:47 +0000 |
---|---|---|
committer | Sean Silva <silvas@purdue.edu> | 2013-06-20 20:59:47 +0000 |
commit | e38f640b22979994b42fb2f2aafc44cc39c20e8e (patch) | |
tree | 1c8d9e3d0236542c3bb61a78a2a664381361aff1 /tools/yaml2obj | |
parent | 6525e92b32c52772f7d750ada7084245655629e6 (diff) | |
download | external_llvm-e38f640b22979994b42fb2f2aafc44cc39c20e8e.zip external_llvm-e38f640b22979994b42fb2f2aafc44cc39c20e8e.tar.gz external_llvm-e38f640b22979994b42fb2f2aafc44cc39c20e8e.tar.bz2 |
[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
Diffstat (limited to 'tools/yaml2obj')
-rw-r--r-- | tools/yaml2obj/yaml2elf.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
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); } |