| author | |
| committer | |
| log | 7dbbddf2a693ba929ee164310dd73db1fa5d8df8 |
| tree | 6c38da8c0b58fbc4d2189217bffdb2de95909d0c |
| parent | 5a919dd82d798c489219ea60a59f1c0ea3fc3956 |
it's way faster1 files changed, 1 insertions(+), 1 deletions(-)
std/macho.zig+1-1| ... | ... | @@ -141,7 +141,7 @@ pub fn loadSymbols(allocator: *mem.Allocator, in: *io.FileInStream) !SymbolTable |
| 141 | 141 | } |
| 142 | 142 | |
| 143 | 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 | 146 | // Insert the sentinel. Since we don't know where the last function ends, |
| 147 | 147 | // we arbitrarily limit it to the start address + 4 KB. |