Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
AngheloAlf committed Mar 13, 2024
1 parent 15c6d0b commit 71dfaf1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions src/splat/segtypes/common/asm.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ class CommonSegAsm(CommonSegCodeSubsegment):
def is_text() -> bool:
return True

def get_section_flags(self) -> Optional[str]:
return "ax"

def out_path(self) -> Optional[Path]:
return options.opts.asm_path / self.dir / f"{self.name}.s"

Expand Down
3 changes: 3 additions & 0 deletions src/splat/segtypes/common/c.py
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,9 @@ def get_global_asm_rodata_syms(c_file: Path) -> Set[str]:
def is_text() -> bool:
return True

def get_section_flags(self) -> Optional[str]:
return "ax"

def out_path(self) -> Optional[Path]:
return options.opts.src_path / self.dir / f"{self.name}.{self.file_extension}"

Expand Down
3 changes: 0 additions & 3 deletions src/splat/segtypes/common/codesubsegment.py
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@ def needs_symbols(self) -> bool:
def get_linker_section(self) -> str:
return ".text"

def get_section_flags(self) -> Optional[str]:
return "ax"

def scan_code(self, rom_bytes, is_hasm=False):
if not isinstance(self.rom_start, int):
log.error(
Expand Down

0 comments on commit 71dfaf1

Please sign in to comment.