diff --git a/tools/elf2rpl/main.cpp b/tools/elf2rpl/main.cpp index 46071595..c211fef0 100644 --- a/tools/elf2rpl/main.cpp +++ b/tools/elf2rpl/main.cpp @@ -563,23 +563,6 @@ fixFileHeader(ElfFile &file) } -/** - * .rodate requires W flag. - */ -static bool -fixRoDataFlags(ElfFile &file) -{ - for (auto §ion : file.sections) { - if (section->header.type == elf::SHT_PROGBITS && - !(section->header.flags & elf::SHF_EXECINSTR)) { - section->header.flags |= elf::SHF_WRITE; - } - } - - return true; -} - - /** * Relocate a section to a new address. */ @@ -955,11 +938,6 @@ int main(int argc, char **argv) return -1; } - if (!fixRoDataFlags(elf)) { - fmt::print("ERROR: fixRoDataFlags failed.\n"); - return -1; - } - if (!deflateSections(elf)) { fmt::print("ERROR: deflateSections failed.\n"); return -1;