mirror of
https://github.com/N64Recomp/N64Recomp.git
synced 2026-04-27 04:21:51 +00:00
fix empty section mapping
This commit is contained in:
parent
07fcdac76d
commit
8a993d4d34
1 changed files with 10 additions and 8 deletions
|
|
@ -320,8 +320,10 @@ ELFIO::section* read_sections(N64Recomp::Context& context, ELFIO::section*& mdeb
|
||||||
if (type == ELFIO::SHT_NOBITS && section_name.ends_with(elf_config.bss_section_suffix)) {
|
if (type == ELFIO::SHT_NOBITS && section_name.ends_with(elf_config.bss_section_suffix)) {
|
||||||
std::string bss_target_section = section_name.substr(0, section_name.size() - elf_config.bss_section_suffix.size());
|
std::string bss_target_section = section_name.substr(0, section_name.size() - elf_config.bss_section_suffix.size());
|
||||||
|
|
||||||
|
if (!bss_target_section.empty()) {
|
||||||
bss_sections_by_name[bss_target_section] = section.get();
|
bss_sections_by_name[bss_target_section] = section.get();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// If this section was marked as being in the ROM in the previous pass, copy it into the ROM now.
|
// If this section was marked as being in the ROM in the previous pass, copy it into the ROM now.
|
||||||
if (section_out.rom_addr != (uint32_t)-1) {
|
if (section_out.rom_addr != (uint32_t)-1) {
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue