| ... | @@ -69,6 +69,7 @@ pub fn buildCompilerRtLib(comp: *Compilation, progress_node: *std.Progress.Node) | ... | @@ -69,6 +69,7 @@ pub fn buildCompilerRtLib(comp: *Compilation, progress_node: *std.Progress.Node) |
| 69 | .main_pkg = null, | 69 | .main_pkg = null, |
| 70 | .output_mode = .Lib, | 70 | .output_mode = .Lib, |
| 71 | .link_mode = .Static, | 71 | .link_mode = .Static, |
| | 72 | .function_sections = true, |
| 72 | .thread_pool = comp.thread_pool, | 73 | .thread_pool = comp.thread_pool, |
| 73 | .libc_installation = comp.bin_file.options.libc_installation, | 74 | .libc_installation = comp.bin_file.options.libc_installation, |
| 74 | .emit_bin = emit_bin, | 75 | .emit_bin = emit_bin, |
| ... | @@ -186,6 +187,7 @@ fn buildObject(comp: *Compilation, src_basename: []const u8, out: *?CRTFile) !vo | ... | @@ -186,6 +187,7 @@ fn buildObject(comp: *Compilation, src_basename: []const u8, out: *?CRTFile) !vo |
| 186 | .emit_bin = emit_bin, | 187 | .emit_bin = emit_bin, |
| 187 | .optimize_mode = comp.compilerRtOptMode(), | 188 | .optimize_mode = comp.compilerRtOptMode(), |
| 188 | .link_mode = .Static, | 189 | .link_mode = .Static, |
| | 190 | .function_sections = true, |
| 189 | .want_sanitize_c = false, | 191 | .want_sanitize_c = false, |
| 190 | .want_stack_check = false, | 192 | .want_stack_check = false, |
| 191 | .want_red_zone = comp.bin_file.options.red_zone, | 193 | .want_red_zone = comp.bin_file.options.red_zone, |