Skip to content

Commit 732c1fb

Browse files
committed
rso: make command
Allow to create rso file from relocatable elf No self file support yet
1 parent cfeacd2 commit 732c1fb

File tree

3 files changed

+557
-19
lines changed

3 files changed

+557
-19
lines changed

README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ project structure and build system that uses decomp-toolkit under the hood.
3939
- [rel info](#rel-info)
4040
- [rel merge](#rel-merge)
4141
- [rso info](#rso-info)
42+
- [rso make](#rso-make)
4243
- [shasum](#shasum)
4344
- [nlzss decompress](#nlzss-decompress)
4445
- [rarc list](#rarc-list)
@@ -370,6 +371,22 @@ Prints information about an RSO file.
370371
$ dtk rso info input.rso
371372
```
372373

374+
### rso make
375+
376+
> [!WARNING]
377+
> This command only support creating rso file (no sel file).
378+
379+
Convert a relocatable elf into a rso file
380+
381+
Options:
382+
- `-o`, `--output <File>`: Output rso file.
383+
- `-m`, `--module-name <Name>`: Module name (or path). Default: input name
384+
- `-e`, `--export <File>`: Path of file containing the symbols allowed to be exported (Divided by `\n`). Default `None`, means no symbol would be exported
385+
386+
```shell
387+
$ dtk rso make input.elf -o input.rso
388+
```
389+
373390
### shasum
374391

375392
Calculate and verify SHA-1 hashes.

0 commit comments

Comments
 (0)