| ... | @@ -141,7 +141,7 @@ pub fn loadSymbols(allocator: *mem.Allocator, in: *io.FileInStream) !SymbolTable | ... | @@ -141,7 +141,7 @@ pub fn loadSymbols(allocator: *mem.Allocator, in: *io.FileInStream) !SymbolTable |
| 141 | } | 141 | } |
| 142 | | 142 | |
| 143 | // Effectively a no-op, lld emits symbols in ascending order. | 143 | // Effectively a no-op, lld emits symbols in ascending order. |
| 144 | std.sort.insertionSort(Symbol, symbols[0..nsyms], Symbol.addressLessThan); | 144 | std.sort.sort(Symbol, symbols[0..nsyms], Symbol.addressLessThan); |
| 145 | | 145 | |
| 146 | // Insert the sentinel. Since we don't know where the last function ends, | 146 | // Insert the sentinel. Since we don't know where the last function ends, |
| 147 | // we arbitrarily limit it to the start address + 4 KB. | 147 | // we arbitrarily limit it to the start address + 4 KB. |