aboutsummaryrefslogtreecommitdiffstats
path: root/lib/Object
diff options
context:
space:
mode:
authorSean Silva <silvas@purdue.edu>2013-06-14 00:38:02 +0000
committerSean Silva <silvas@purdue.edu>2013-06-14 00:38:02 +0000
commit97d37e818153c6c5f844ddebaab26be324dbe41c (patch)
tree94b0f75f0d15a80b534a71adf70c8f2cc015cefa /lib/Object
parent38084db681d99a7b167328cf5420c20f88036d1b (diff)
downloadexternal_llvm-97d37e818153c6c5f844ddebaab26be324dbe41c.zip
external_llvm-97d37e818153c6c5f844ddebaab26be324dbe41c.tar.gz
external_llvm-97d37e818153c6c5f844ddebaab26be324dbe41c.tar.bz2
[yaml2obj] Add support for sh_addralign via `AddressAlign` key.
For consistency, change the address in the test case from 0xDEADBEEF to 0xCAFEBABE since 0xCAFEBABE that actually has a 2-byte alignment. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183962 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Object')
-rw-r--r--lib/Object/ELFYAML.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Object/ELFYAML.cpp b/lib/Object/ELFYAML.cpp
index 21ca035..6e99767 100644
--- a/lib/Object/ELFYAML.cpp
+++ b/lib/Object/ELFYAML.cpp
@@ -267,6 +267,7 @@ void MappingTraits<ELFYAML::Section>::mapping(IO &IO,
IO.mapOptional("Flags", Section.Flags, ELFYAML::ELF_SHF(0));
IO.mapOptional("Address", Section.Address, Hex64(0));
IO.mapOptional("Content", Section.Content);
+ IO.mapOptional("AddressAlign", Section.AddressAlign, Hex64(0));
}
void MappingTraits<ELFYAML::Object>::mapping(IO &IO, ELFYAML::Object &Object) {