Fix elf2rpl incorrect section type output for bss.

This commit is contained in:
James Benton 2016-06-08 01:11:23 +01:00
parent 49f10e6465
commit 469b69d11f

View File

@ -525,7 +525,7 @@ write(ElfFile &file, const std::string &filename)
for (auto &section : file.dataSections) { for (auto &section : file.dataSections) {
auto out = new OutputSection(); auto out = new OutputSection();
out->header.name = -1; out->header.name = -1;
out->header.type = elf::SHT_PROGBITS; out->header.type = section->type;
out->header.flags = section->flags; out->header.flags = section->flags;
out->header.addr = section->address; out->header.addr = section->address;
out->header.offset = -1; out->header.offset = -1;