(addr: int, sections: list[Section])
| 78 | |
| 79 | |
| 80 | def loaded_section_for(addr: int, sections: list[Section]) -> Section | None: |
| 81 | for s in sections: |
| 82 | if not s.is_loadable: |
| 83 | continue |
| 84 | # PROGBITS only |
| 85 | if "W" in s.flags and s.name.startswith(".dram0.dummy"): |
| 86 | continue |
| 87 | if s.addr <= addr < s.end: |
| 88 | return s |
| 89 | return None |
| 90 | |
| 91 | |
| 92 | def parse_nm_symbols() -> list[tuple[int, int, str, str]]: |