| ... | @@ -775,6 +775,9 @@ pub fn loadInput(self: *Elf, input: link.Input) !void { | ... | @@ -775,6 +775,9 @@ pub fn loadInput(self: *Elf, input: link.Input) !void { |
| 775 | const is_static_lib = self.base.isStaticLib(); | 775 | const is_static_lib = self.base.isStaticLib(); |
| 776 | | 776 | |
| 777 | if (comp.verbose_link) { | 777 | if (comp.verbose_link) { |
| | 778 | comp.mutex.lock(); // protect comp.arena |
| | 779 | defer comp.mutex.unlock(); |
| | 780 | |
| 778 | const argv = &self.dump_argv_list; | 781 | const argv = &self.dump_argv_list; |
| 779 | switch (input) { | 782 | switch (input) { |
| 780 | .res => unreachable, | 783 | .res => unreachable, |