From 469b69d11fa2adce441f3433e1a076e4e640ce22 Mon Sep 17 00:00:00 2001 From: James Benton Date: Wed, 8 Jun 2016 01:11:23 +0100 Subject: [PATCH] Fix elf2rpl incorrect section type output for bss. --- tools/elf2rpl/main.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;