You've already forked dtk-template
mirror of
https://github.com/encounter/dtk-template.git
synced 2026-03-30 11:08:33 -07:00
1.8 KiB
1.8 KiB
splits.txt
This file contains file splits for a module.
Example:
path/to/file.cpp:
.text start:0x80047E5C end:0x8004875C
.ctors start:0x803A54C4 end:0x803A54C8
.data start:0x803B1B40 end:0x803B1B60
.bss start:0x803DF828 end:0x803DFA8C
.bss start:0x8040D4AC end:0x8040D4D8 common
Format
path/to/file.cpp: [file attributes]
section [section attributes]
...
path/to/file.cppThe name of the source file, usually relative tosrc. The file does not need to exist to start.
This corresponds to an entry inconfigure.pyfor specifying compiler flags and other options.
File attributes
comment:Overrides themw_comment_versionsetting inconfig.ymlfor this file. See Comment section.
comment:0 is used to disable .comment section generation for a file that wasn't compiled with mwcc.
Example: TRK_MINNOW_DOLPHIN/ppc/Export/targsupp.s: comment:0
This file was assembled and only contains label symbols. Generating a .comment section for it will crash mwld.
Section attributes
start:The start address of the section within the file. For DOLs, this is the absolute address (e.g.0x80001234). For RELs, this is the section-relative address (e.g.0x1234).end:The end address of the section within the file.align:Specifies the alignment of the section. If not specified, the default alignment for the section is used.rename:Writes this section under a different name when generating the split object. Used for.ctors$10, etc.commonOnly valid for.bss. See Common BSS.skipSkips this data when writing the object file. Used for ignoring data that's linker-generated.