mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-05 13:26:55 +00:00
[yaml2obj][ELF] Don't special case writing these.
Just add them to the vector of section headers like the rest of the section headers. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@184624 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -347,16 +347,16 @@ static int writeELF(raw_ostream &OS, const ELFYAML::Object &Doc) {
|
||||
zero(DotStrTabSHeader);
|
||||
DotStrTabSHeader.sh_name = SHStrTab.addString(StringRef(".strtab"));
|
||||
createStringTableSectionHeader(DotStrTabSHeader, State.getStringTable(), CBA);
|
||||
SHeaders.push_back(DotStrTabSHeader);
|
||||
|
||||
// Section header string table header.
|
||||
Elf_Shdr SHStrTabSHeader;
|
||||
zero(SHStrTabSHeader);
|
||||
createStringTableSectionHeader(SHStrTabSHeader, SHStrTab, CBA);
|
||||
SHeaders.push_back(SHStrTabSHeader);
|
||||
|
||||
OS.write((const char *)&Header, sizeof(Header));
|
||||
writeVectorData(OS, SHeaders);
|
||||
OS.write((const char *)&DotStrTabSHeader, sizeof(DotStrTabSHeader));
|
||||
OS.write((const char *)&SHStrTabSHeader, sizeof(SHStrTabSHeader));
|
||||
CBA.writeBlobToStream(OS);
|
||||
return 0;
|
||||
}
|
||||
|
Reference in New Issue
Block a user