Support global labels in REL creation (_savegpr, etc)

This commit is contained in:
Luke Street 2024-04-03 00:13:15 -06:00
parent ccfbfd1a5a
commit d0f39f1d82
1 changed files with 1 additions and 1 deletions

View File

@ -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()));
} }
} }