diff options
author | George Rimar <grimar@accesssoftek.com> | 2019-10-02 13:52:37 +0000 |
---|---|---|
committer | George Rimar <grimar@accesssoftek.com> | 2019-10-02 13:52:37 +0000 |
commit | 6fa696fb08d54071daac0d867d783d12b9dabd65 (patch) | |
tree | 9218b465a09c0a31a645ad8b5b983d53b89d04fa /llvm/lib/ObjectYAML/ELFEmitter.cpp | |
parent | a24762e773d90c9e195d763297ef04af42ff2e34 (diff) | |
download | bcm5719-llvm-6fa696fb08d54071daac0d867d783d12b9dabd65.tar.gz bcm5719-llvm-6fa696fb08d54071daac0d867d783d12b9dabd65.zip |
[yaml2obj] - Alow Size tag for describing SHT_HASH sections.
This is a follow-up for D68085 which allows using "Size"
tag together with "Content" tag or alone.
Differential revision: https://reviews.llvm.org/D68216
llvm-svn: 373473
Diffstat (limited to 'llvm/lib/ObjectYAML/ELFEmitter.cpp')
-rw-r--r-- | llvm/lib/ObjectYAML/ELFEmitter.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/ObjectYAML/ELFEmitter.cpp b/llvm/lib/ObjectYAML/ELFEmitter.cpp index 1651d605650..c85cf4c924f 100644 --- a/llvm/lib/ObjectYAML/ELFEmitter.cpp +++ b/llvm/lib/ObjectYAML/ELFEmitter.cpp @@ -824,8 +824,8 @@ void ELFState<ELFT>::writeSectionContent(Elf_Shdr &SHeader, if (Section.Link.empty() && SN2I.lookup(".dynsym", Link)) SHeader.sh_link = Link; - if (Section.Content) { - SHeader.sh_size = writeContent(OS, Section.Content, None); + if (Section.Content || Section.Size) { + SHeader.sh_size = writeContent(OS, Section.Content, Section.Size); return; } |