diff options
author | Sean Silva <silvas@purdue.edu> | 2013-06-13 22:19:54 +0000 |
---|---|---|
committer | Sean Silva <silvas@purdue.edu> | 2013-06-13 22:19:54 +0000 |
commit | 45b812d1a79f3f8642821e65a25d92e3d741a095 (patch) | |
tree | 74268e265c5acf8722c0d31986104e81e0b64161 /tools/yaml2obj | |
parent | 274264ce2ba93d26702f7ebfe6aea121df44113f (diff) | |
download | external_llvm-45b812d1a79f3f8642821e65a25d92e3d741a095.zip external_llvm-45b812d1a79f3f8642821e65a25d92e3d741a095.tar.gz external_llvm-45b812d1a79f3f8642821e65a25d92e3d741a095.tar.bz2 |
[yaml2obj] Add sh_addr via `Address` key.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183954 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'tools/yaml2obj')
-rw-r--r-- | tools/yaml2obj/yaml2elf.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/yaml2obj/yaml2elf.cpp b/tools/yaml2obj/yaml2elf.cpp index 235327b..1809bb5 100644 --- a/tools/yaml2obj/yaml2elf.cpp +++ b/tools/yaml2obj/yaml2elf.cpp @@ -132,7 +132,7 @@ static void writeELF(raw_ostream &OS, const ELFYAML::Object &Doc) { SHeader.sh_name = StrTab.addString(Sec.Name); SHeader.sh_type = Sec.Type; SHeader.sh_flags = Sec.Flags; - SHeader.sh_addr = 0; + SHeader.sh_addr = Sec.Address; SHeader.sh_offset = 0; SHeader.sh_size = 0; SHeader.sh_link = 0; |