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 /include | |
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 'include')
-rw-r--r-- | include/llvm/Object/ELFYAML.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/include/llvm/Object/ELFYAML.h b/include/llvm/Object/ELFYAML.h index b007944..abf3693 100644 --- a/include/llvm/Object/ELFYAML.h +++ b/include/llvm/Object/ELFYAML.h @@ -58,6 +58,8 @@ struct Symbol { ELF_STB Binding; ELF_STT Type; StringRef Section; + llvm::yaml::Hex64 Value; + llvm::yaml::Hex64 Size; }; struct Section { StringRef Name; |