Luke Street
456f4eebd4
Update deny.toml
2023-11-07 23:25:24 -05:00
Luke Street
65b04024d5
Update README.md
...
The previous commit also fixed the `map` commands, because why bother splitting anything out?
2023-11-07 23:24:03 -05:00
Luke Street
ec4caf5000
Smarter configuration updates
...
- Avoid overwriting `symbols.txt` or `splits.txt` if the file was modified since it was read or if the file's contents didn't change.
- Remove `binrw` and `byteorder` dependencies, moving to `FromReader`/`ToWriter` traits.
- Migrate generic bounds to `where` clauses.
- Remove unused `build.rs` logic.
2023-11-07 23:21:59 -05:00
Luke Street
c452b74666
Version 0.5.7
2023-10-10 12:33:27 -04:00
Luke Street
41a69441da
Support section 241 (extabindex) in RSOs
2023-10-10 12:32:56 -04:00
Luke Street
95c779b105
Better terminal color support
...
- Enables ANSI on Windows 10
- Disables colors if unsupported
- Supports `--no-color` and env `NO_COLOR` to disable
- Supports env `FORCE_COLOR` and `CLICOLOR_FORCE` to enable
2023-10-10 12:32:05 -04:00
Luke Street
a164852a15
Write gap symbols as hidden
2023-10-07 14:50:01 -04:00
Luke Street
dfb569b883
Add alf support (NVIDIA Shield TV binaries)
...
- Supports .alf files in all places .dol files are accepted.
- Adds `hash` and `dhash` to symbols config.
2023-10-07 02:03:09 -04:00
Luke Street
db506fb927
Update dependencies & macros.inc for ppc750cl
2023-10-06 01:20:04 -04:00
Luke Street
62c5e3acf9
Update README.md with dtk-template & more commands
2023-10-04 23:38:43 -04:00
Luke Street
36bb5ddcc6
Zero out section data for relocations in relocatable ELFs
...
Fixes issues with Wii versions of mwld.
2023-10-01 12:50:21 -04:00
Luke Street
c354c6da4b
REL section alignment fixes
...
- Honor section alignment from splits.txt when writing RELs
- Better heuristic for determining REL section alignment on initial analysis
2023-09-26 13:06:57 -04:00
Luke Street
610a2e56b9
Add `ldscript_template` option to project config
2023-09-23 07:56:49 -04:00
Luke Street
400fb7fa7f
Add `code_size`, `data_size` to generated `config.json`
...
Also simplify project config generation by skipping default fields
2023-09-14 17:24:00 -04:00
Luke Street
59a4eb33d0
Write `version` in generated `config.json`
2023-09-13 17:07:06 -04:00
Luke Street
42217a339e
Update cargo deny.toml
2023-09-13 02:10:47 -04:00
Luke Street
d4ef1ce16a
Analyzer fixes galore
...
- Transparent NLZSS decompression (add `:nlzss` to path)
- Overhaul portions of the analyzer to support more games
- Reject some invalid data relocations automatically
- Jump table analysis fixes
2023-09-13 02:08:51 -04:00
Luke Street
50f913c4eb
clippy fixes
2023-09-10 02:20:54 -04:00
Luke Street
18170a96a2
Don't use map in `dol diff` and `dol apply`; remove common BSS hack
2023-09-10 02:20:08 -04:00
Luke Street
788ffb9e17
Fix empty .lcf FORCEACTIVE with symbols_known
2023-09-09 19:24:13 -04:00
Luke Street
6abe6cc277
clippy fix
2023-09-05 17:31:19 -04:00
Luke Street
21c80537ac
cargo-deny: Allow ISC license
2023-09-05 17:24:03 -04:00
Luke Street
e3857d3212
Improvements to REL & map support
...
- Fix symbols.txt align attribute
- Fully support nested RARC files & transparent Yaz0 decompression
- Guess symbol visibility for maps without link map
- Add module name config
- Add manual force_active config
- Quiet option for shasum
- `symbols_known` and `fill_gaps` config
- Allow disabling .comment generation per-unit (`comment:0`)
- Various minor fixes
- Add `rarc` and `yaz0` commands
2023-09-05 17:22:22 -04:00
Luke Street
f9f7fb2e1e
Working `rel make` & more
...
- Added `elf info`
- Improved `rel info`
- Colored output for `shasum`
- Fix section `rename` in RELs
- Added padding symbols to avoid linker issues
- Automatically set symbols to "active" in .comment output
2023-08-23 23:13:12 -04:00
Luke Street
a2374e4fa0
Semi-working REL analysis & splitting
2023-08-23 23:13:12 -04:00
Luke Street
3f63f1ef47
A lot more section-address-aware refactoring
2023-08-23 23:13:12 -04:00
Luke Street
5843ee021e
Begin REL analysis & rework lots of code to be section-address aware
2023-08-17 22:09:45 -04:00
Luke Street
347889773d
Version 0.3.7
2023-08-15 23:18:15 -04:00
Luke Street
933edcfb19
Clippy fixes
2023-08-15 22:47:35 -04:00
Luke Street
23a156a6d5
Add selfile option & load in `dol split`
2023-08-15 22:45:23 -04:00
Luke Street
908e3bb037
Check functions at start of code sections in detect_functions
2023-08-15 22:44:48 -04:00
Luke Street
a394dfc88c
Improved sanity checks in asm write_data
2023-08-15 22:44:06 -04:00
Luke Street
2c2ee8bf08
Validate splits don't overlap symbols (or each other)
...
Use DoubleEndedIterator::next_back instead of Iterator::last to avoid unnecessary iteration.
2023-08-15 09:47:00 -04:00
Luke Street
d272b5dce8
Write common symbol align in asm
2023-08-15 09:36:45 -04:00
Luke Street
8200ee7649
Version 0.3.5
2023-08-10 00:06:42 -04:00
Luke Street
522909907c
Add quick_analysis option & disable auto_force_files by default
2023-08-10 00:05:33 -04:00
Luke Street
33a026d0c7
Support module hash in config.yml
2023-08-10 00:04:35 -04:00
Luke Street
5272f90991
Read symbol alignment from .comment
2023-08-10 00:03:44 -04:00
Luke Street
265e26ee40
Guess section alignment & write __ArenaHi in .lcf
2023-08-10 00:03:14 -04:00
Luke Street
98ab89a1de
Don't relocate against linker symbols for certain relocations
2023-08-10 00:02:28 -04:00
Luke Street
cf328b8707
Only create relocations for direct branches
2023-08-09 23:59:26 -04:00
Luke Street
457ee10a42
Emit FORCEACTIVE in LCF & various fixes
2023-08-09 01:24:23 -04:00
Luke Street
d9e1ae2777
MW 2.7 LD compatibility fixes & more
...
- More robust .comment section handling
- Auto-create .comment section for objects with common symbols (MW 2.7+ hack)
- Support loading REL modules in `dol split` (currently only for references)
- Add `dol diff` for quick diffing between linked ELF and expected symbols
- Add `dol apply` for applying linked ELF symbols to symbol config file
2023-08-08 23:34:00 -04:00
Luke Street
5bdffa94c4
Generated TU name adjustments
2023-08-08 01:54:01 -04:00
Luke Street
46801939a3
Fix up .comment section writing & support symbol force_active
2023-08-08 01:53:47 -04:00
Luke Street
bf0dd310e6
Bump version
2023-08-07 20:07:13 -04:00
Luke Street
40786587e3
Support common BSS in update_splits & resolve_link_order
2023-08-07 20:05:57 -04:00
Luke Street
c9eb824034
Emit __init_cpp_exceptions_reference symbols as global
2023-08-07 20:05:19 -04:00
Luke Street
9684701d5b
Include common symbols in ObjSymbols::for_range
2023-08-07 20:05:00 -04:00
Luke Street
e215b6d843
Fix write_elf for common symbols & only write filename in file symbol
2023-08-07 20:04:40 -04:00