Allow absolute relocations to linker generated symbols

Fixes #15
This commit is contained in:
Luke Street 2024-01-06 11:47:17 -07:00
parent 8e7de9588f
commit c44846d73f
1 changed files with 6 additions and 1 deletions

View File

@ -572,7 +572,12 @@ impl Tracker {
addr: u32, addr: u32,
reloc_kind: ObjRelocKind, reloc_kind: ObjRelocKind,
) -> Option<usize> { ) -> Option<usize> {
if !matches!(reloc_kind, ObjRelocKind::PpcAddr16Ha | ObjRelocKind::PpcAddr16Lo) { if !matches!(
reloc_kind,
ObjRelocKind::PpcAddr16Ha | ObjRelocKind::PpcAddr16Lo
// RSOLinkInit uses a data table containing references to _SDA_BASE_ and _SDA2_BASE_
| ObjRelocKind::Absolute
) {
return None; return None;
} }
// HACK for RSOStaticLocateObject // HACK for RSOStaticLocateObject