| ... | @@ -1157,8 +1157,14 @@ pub const LibExeObjStep = struct { | ... | @@ -1157,8 +1157,14 @@ pub const LibExeObjStep = struct { |
| 1157 | | 1157 | |
| 1158 | valgrind_support: ?bool = null, | 1158 | valgrind_support: ?bool = null, |
| 1159 | | 1159 | |
| | 1160 | /// Create a .eh_frame_hdr section and a PT_GNU_EH_FRAME segment in the ELF |
| | 1161 | /// file. |
| 1160 | link_eh_frame_hdr: bool = false, | 1162 | link_eh_frame_hdr: bool = false, |
| 1161 | | 1163 | |
| | 1164 | /// Place every function in its own section so that unused ones may be |
| | 1165 | /// safely garbage-collected during the linking phase. |
| | 1166 | link_function_sections: bool = false, |
| | 1167 | |
| 1162 | /// Uses system Wine installation to run cross compiled Windows build artifacts. | 1168 | /// Uses system Wine installation to run cross compiled Windows build artifacts. |
| 1163 | enable_wine: bool = false, | 1169 | enable_wine: bool = false, |
| 1164 | | 1170 | |
| ... | @@ -1884,7 +1890,9 @@ pub const LibExeObjStep = struct { | ... | @@ -1884,7 +1890,9 @@ pub const LibExeObjStep = struct { |
| 1884 | if (self.link_eh_frame_hdr) { | 1890 | if (self.link_eh_frame_hdr) { |
| 1885 | try zig_args.append("--eh-frame-hdr"); | 1891 | try zig_args.append("--eh-frame-hdr"); |
| 1886 | } | 1892 | } |
| 1887 | | 1893 | if (self.link_function_sections) { |
| | 1894 | try zig_args.append("-ffunction-sections"); |
| | 1895 | } |
| 1888 | if (self.single_threaded) { | 1896 | if (self.single_threaded) { |
| 1889 | try zig_args.append("--single-threaded"); | 1897 | try zig_args.append("--single-threaded"); |
| 1890 | } | 1898 | } |