| ... | @@ -498,8 +498,9 @@ fn resolveRelocsArm64( | ... | @@ -498,8 +498,9 @@ fn resolveRelocsArm64( |
| 498 | atom.file, | 498 | atom.file, |
| 499 | }); | 499 | }); |
| 500 | | 500 | |
| | 501 | const sym_index = reverse_lookup[rel.r_symbolnum]; |
| 501 | const sym_loc = SymbolWithLoc{ | 502 | const sym_loc = SymbolWithLoc{ |
| 502 | .sym_index = rel.r_symbolnum, | 503 | .sym_index = sym_index, |
| 503 | .file = atom.file, | 504 | .file = atom.file, |
| 504 | }; | 505 | }; |
| 505 | const sym = zld.getSymbol(sym_loc); | 506 | const sym = zld.getSymbol(sym_loc); |
| ... | @@ -783,8 +784,9 @@ fn resolveRelocsX86( | ... | @@ -783,8 +784,9 @@ fn resolveRelocsX86( |
| 783 | atom.file, | 784 | atom.file, |
| 784 | }); | 785 | }); |
| 785 | | 786 | |
| | 787 | const sym_index = reverse_lookup[rel.r_symbolnum]; |
| 786 | const sym_loc = SymbolWithLoc{ | 788 | const sym_loc = SymbolWithLoc{ |
| 787 | .sym_index = rel.r_symbolnum, | 789 | .sym_index = sym_index, |
| 788 | .file = atom.file, | 790 | .file = atom.file, |
| 789 | }; | 791 | }; |
| 790 | const sym = zld.getSymbol(sym_loc); | 792 | const sym = zld.getSymbol(sym_loc); |