decomp-toolkit/src/obj
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
..
addresses.rs Support `block_relocations` and `add_relocations` in `config.yml` 2024-05-19 22:49:40 -06:00
mod.rs Support `block_relocations` and `add_relocations` in `config.yml` 2024-05-19 22:49:40 -06:00
relocations.rs Support `block_relocations` and `add_relocations` in `config.yml` 2024-05-19 22:49:40 -06:00
sections.rs Write .splitmeta section in split objects 2024-02-28 22:27:38 -07:00
splits.rs Analyzer fixes galore 2023-09-13 02:08:51 -04:00
symbols.rs Support `block_relocations` and `add_relocations` in `config.yml` 2024-05-19 22:49:40 -06:00