mirror of
https://github.com/encounter/decomp-toolkit.git
synced 2025-06-07 15:13:38 +00:00
Support global labels in REL creation (_savegpr, etc)
This commit is contained in:
parent
ccfbfd1a5a
commit
d0f39f1d82
@ -295,7 +295,7 @@ fn make(args: MakeArgs) -> Result<()> {
|
|||||||
for (module_id, (module, path)) in modules.iter().enumerate() {
|
for (module_id, (module, path)) in modules.iter().enumerate() {
|
||||||
let _span = info_span!("file", path = %path.display()).entered();
|
let _span = info_span!("file", path = %path.display()).entered();
|
||||||
for symbol in module.symbols() {
|
for symbol in module.symbols() {
|
||||||
if symbol.is_definition() && symbol.scope() == object::SymbolScope::Dynamic {
|
if symbol.scope() == object::SymbolScope::Dynamic {
|
||||||
symbol_map.entry(symbol.name_bytes()?).or_insert((module_id, symbol.index()));
|
symbol_map.entry(symbol.name_bytes()?).or_insert((module_id, symbol.index()));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user