| ... | @@ -41,6 +41,7 @@ pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Pro | ... | @@ -41,6 +41,7 @@ pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Pro |
| 41 | return comp.build_crt_file("crti", .Obj, .@"musl crti.o", prog_node, &files, .{ | 41 | return comp.build_crt_file("crti", .Obj, .@"musl crti.o", prog_node, &files, .{ |
| 42 | .function_sections = true, | 42 | .function_sections = true, |
| 43 | .data_sections = true, | 43 | .data_sections = true, |
| | 44 | .omit_frame_pointer = true, |
| 44 | .no_builtin = true, | 45 | .no_builtin = true, |
| 45 | }); | 46 | }); |
| 46 | }, | 47 | }, |
| ... | @@ -57,6 +58,7 @@ pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Pro | ... | @@ -57,6 +58,7 @@ pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Pro |
| 57 | return comp.build_crt_file("crtn", .Obj, .@"musl crtn.o", prog_node, &files, .{ | 58 | return comp.build_crt_file("crtn", .Obj, .@"musl crtn.o", prog_node, &files, .{ |
| 58 | .function_sections = true, | 59 | .function_sections = true, |
| 59 | .data_sections = true, | 60 | .data_sections = true, |
| | 61 | .omit_frame_pointer = true, |
| 60 | .no_builtin = true, | 62 | .no_builtin = true, |
| 61 | }); | 63 | }); |
| 62 | }, | 64 | }, |
| ... | @@ -76,6 +78,7 @@ pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Pro | ... | @@ -76,6 +78,7 @@ pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Pro |
| 76 | return comp.build_crt_file("crt1", .Obj, .@"musl crt1.o", prog_node, &files, .{ | 78 | return comp.build_crt_file("crt1", .Obj, .@"musl crt1.o", prog_node, &files, .{ |
| 77 | .function_sections = true, | 79 | .function_sections = true, |
| 78 | .data_sections = true, | 80 | .data_sections = true, |
| | 81 | .omit_frame_pointer = true, |
| 79 | .no_builtin = true, | 82 | .no_builtin = true, |
| 80 | }); | 83 | }); |
| 81 | }, | 84 | }, |
| ... | @@ -95,6 +98,7 @@ pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Pro | ... | @@ -95,6 +98,7 @@ pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Pro |
| 95 | return comp.build_crt_file("rcrt1", .Obj, .@"musl rcrt1.o", prog_node, &files, .{ | 98 | return comp.build_crt_file("rcrt1", .Obj, .@"musl rcrt1.o", prog_node, &files, .{ |
| 96 | .function_sections = true, | 99 | .function_sections = true, |
| 97 | .data_sections = true, | 100 | .data_sections = true, |
| | 101 | .omit_frame_pointer = true, |
| 98 | .pic = true, | 102 | .pic = true, |
| 99 | .no_builtin = true, | 103 | .no_builtin = true, |
| 100 | }); | 104 | }); |
| ... | @@ -115,6 +119,7 @@ pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Pro | ... | @@ -115,6 +119,7 @@ pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Pro |
| 115 | return comp.build_crt_file("Scrt1", .Obj, .@"musl Scrt1.o", prog_node, &files, .{ | 119 | return comp.build_crt_file("Scrt1", .Obj, .@"musl Scrt1.o", prog_node, &files, .{ |
| 116 | .function_sections = true, | 120 | .function_sections = true, |
| 117 | .data_sections = true, | 121 | .data_sections = true, |
| | 122 | .omit_frame_pointer = true, |
| 118 | .pic = true, | 123 | .pic = true, |
| 119 | .no_builtin = true, | 124 | .no_builtin = true, |
| 120 | }); | 125 | }); |
| ... | @@ -213,6 +218,7 @@ pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Pro | ... | @@ -213,6 +218,7 @@ pub fn buildCrtFile(comp: *Compilation, in_crt_file: CrtFile, prog_node: std.Pro |
| 213 | return comp.build_crt_file("c", .Lib, .@"musl libc.a", prog_node, c_source_files.items, .{ | 218 | return comp.build_crt_file("c", .Lib, .@"musl libc.a", prog_node, c_source_files.items, .{ |
| 214 | .function_sections = true, | 219 | .function_sections = true, |
| 215 | .data_sections = true, | 220 | .data_sections = true, |
| | 221 | .omit_frame_pointer = true, |
| 216 | .no_builtin = true, | 222 | .no_builtin = true, |
| 217 | }); | 223 | }); |
| 218 | }, | 224 | }, |
| ... | @@ -457,7 +463,6 @@ fn addCcArgs( | ... | @@ -457,7 +463,6 @@ fn addCcArgs( |
| 457 | | 463 | |
| 458 | o_arg, | 464 | o_arg, |
| 459 | | 465 | |
| 460 | "-fomit-frame-pointer", | | |
| 461 | "-fno-unwind-tables", | 466 | "-fno-unwind-tables", |
| 462 | "-fno-asynchronous-unwind-tables", | 467 | "-fno-asynchronous-unwind-tables", |
| 463 | | 468 | |