diff --git a/tools/elf2rpl/main.cpp b/tools/elf2rpl/main.cpp index 1f4ef06..68f4996 100644 --- a/tools/elf2rpl/main.cpp +++ b/tools/elf2rpl/main.cpp @@ -525,7 +525,7 @@ write(ElfFile &file, const std::string &filename) for (auto §ion : file.dataSections) { auto out = new OutputSection(); out->header.name = -1; - out->header.type = elf::SHT_PROGBITS; + out->header.type = section->type; out->header.flags = section->flags; out->header.addr = section->address; out->header.offset = -1;