mirror of
https://github.com/encounter/decomp-toolkit.git
synced 2025-06-22 06:23:28 +00:00
Fix ELF relocation processing
Another bug caused by object removing ELF null section / symbol from their iterators.
This commit is contained in:
parent
3ada073da1
commit
fa5068fd6d
@ -352,8 +352,9 @@ pub fn process_elf(path: &Utf8NativePath) -> Result<ObjInfo> {
|
||||
// TODO rebuild common symbols
|
||||
}
|
||||
|
||||
for (section_idx, section) in obj_file.sections().enumerate() {
|
||||
let out_section = match section_indexes[section_idx].and_then(|idx| sections.get_mut(idx)) {
|
||||
for section in obj_file.sections() {
|
||||
let out_section =
|
||||
match section_indexes[section.index().0].and_then(|idx| sections.get_mut(idx)) {
|
||||
Some(s) => s,
|
||||
None => continue,
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user