summaryrefslogtreecommitdiff
path: root/tools
diff options
context:
space:
mode:
Diffstat (limited to 'tools')
-rw-r--r--tools/yaml2obj/yaml2elf.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/tools/yaml2obj/yaml2elf.cpp b/tools/yaml2obj/yaml2elf.cpp
index bf1eec6e51..8e0383c022 100644
--- a/tools/yaml2obj/yaml2elf.cpp
+++ b/tools/yaml2obj/yaml2elf.cpp
@@ -160,6 +160,8 @@ static int writeELF(raw_ostream &OS, const ELFYAML::Object &Doc) {
ELFYAML::Section S;
S.Type = SHT_NULL;
zero(S.Flags);
+ zero(S.Address);
+ zero(S.AddressAlign);
Sections.insert(Sections.begin(), S);
}
// "+ 1" for string table.