decomp-toolkit/src/util
Luke Street c3f3ea58e8 Support `block_relocations` and `add_relocations` in `config.yml`
This allows more granular control over generated relocations.

Also optimizes relocation address validity checks,
leading to ~20% faster relocation analysis.

Config example:
```
block_relocations:
# Block any relocation pointing to this address.
- target: .data:0x80130140
# Block any relocation originating from this address.
- source: .text:0x80047160
  # (optional) End address to make it a range.
  end: .text:0x800471A8

add_relocations:
# Inserts or overwrites a relocation.
# From: `subi r3, r3, 0x7657`
# To: `li r3, mesWInsert-0x1@sda21`
- source: .text:0x800473F4
  type: sda21
  target: mesWInsert
  addend: -1
```

Resolves #33
Resolves #52
2024-05-19 22:49:40 -06:00
..
alf.rs Add alf support (NVIDIA Shield TV binaries) 2023-10-07 02:03:09 -04:00
asm.rs Version 0.8.2: Fix asm output 2024-05-17 07:12:05 -06:00
bin2c.rs bin2c: Honor symbol alignment 2023-11-26 01:12:34 -05:00
comment.rs Add `noexport` attr to symbols.txt 2024-01-14 13:58:18 -07:00
config.rs Support `block_relocations` and `add_relocations` in `config.yml` 2024-05-19 22:49:40 -06:00
dep.rs Smarter configuration updates 2023-11-07 23:21:59 -05:00
dol.rs Rework section alignment handling 2024-04-30 18:04:17 -06:00
dwarf.rs Reconstruct "erased" tags from DWARF debugging info (#51) 2024-05-15 23:06:30 -06:00
elf.rs Add Yay0/Yaz0 compression & decompression 2024-04-30 18:03:00 -06:00
file.rs Add Yay0/Yaz0 compression & decompression 2024-04-30 18:03:00 -06:00
lcf.rs Fix lcf generation for empty RELs 2024-05-19 22:28:14 -06:00
map.rs Add Yay0/Yaz0 compression & decompression 2024-04-30 18:03:00 -06:00
mod.rs Add Yay0/Yaz0 compression & decompression 2024-04-30 18:03:00 -06:00
ncompress.rs Add Yay0/Yaz0 compression & decompression 2024-04-30 18:03:00 -06:00
nested.rs 6 months of occasional work I guess 2023-07-21 17:59:07 -04:00
rarc.rs Appease clippy 2024-04-03 00:18:16 -06:00
reader.rs Added: Support for Little Endian DWARF, Inline Arrays & Additional MetroWerks Extensions (#14) 2023-12-11 13:07:29 -05:00
rel.rs Fix lcf generation for empty RELs 2024-05-19 22:28:14 -06:00
rso.rs Write .splitmeta section in split objects 2024-02-28 22:27:38 -07:00
signatures.rs Smarter configuration updates 2023-11-07 23:21:59 -05:00
split.rs Add Yay0/Yaz0 compression & decompression 2024-04-30 18:03:00 -06:00
take_seek.rs Smarter configuration updates 2023-11-07 23:21:59 -05:00