| ... | ... | @@ -446,6 +446,8 @@ const usage_build_generic = |
| 446 | 446 | \\ --compress-debug-sections=[e] Debug section compression settings |
| 447 | 447 | \\ none No compression |
| 448 | 448 | \\ zlib Compression with deflate/inflate |
| 449 | \\ --gc-sections Force removal of functions and data that are unreachable by the entry point or exported symbols |
| 450 | \\ --no-gc-sections Don't force removal of unreachable functions and data |
| 449 | 451 | \\ --subsystem [subsystem] (Windows) /SUBSYSTEM:<subsystem> to the linker |
| 450 | 452 | \\ --stack [size] Override default stack size |
| 451 | 453 | \\ --image-base [addr] Set base address for executable image |
| ... | ... | @@ -463,7 +465,7 @@ const usage_build_generic = |
| 463 | 465 | \\ -search_dylibs_first (Darwin) search `libx.dylib` in each dir in library search paths, then `libx.a` |
| 464 | 466 | \\ -headerpad [value] (Darwin) set minimum space for future expansion of the load commands in hexadecimal notation |
| 465 | 467 | \\ -headerpad_max_install_names (Darwin) set enough space as if all paths were MAXPATHLEN |
| 466 | | \\ -dead_strip (Darwin) remove function and data that are unreachable by the entry point of exported symbols |
| 468 | \\ -dead_strip (Darwin) remove functions and data that are unreachable by the entry point or exported symbols |
| 467 | 469 | \\ -dead_strip_dylibs (Darwin) remove dylibs that are unreachable by the entry point or exported symbols |
| 468 | 470 | \\ --import-memory (WebAssembly) import memory from the environment |
| 469 | 471 | \\ --import-table (WebAssembly) import function table from the host environment |
| ... | ... | @@ -1314,6 +1316,10 @@ fn buildOutputType( |
| 1314 | 1316 | try linker_export_symbol_names.append(arg["--export=".len..]); |
| 1315 | 1317 | } else if (mem.eql(u8, arg, "-Bsymbolic")) { |
| 1316 | 1318 | linker_bind_global_refs_locally = true; |
| 1319 | } else if (mem.eql(u8, arg, "--gc-sections")) { |
| 1320 | linker_gc_sections = true; |
| 1321 | } else if (mem.eql(u8, arg, "--no-gc-sections")) { |
| 1322 | linker_gc_sections = false; |
| 1317 | 1323 | } else if (mem.eql(u8, arg, "--debug-compile-errors")) { |
| 1318 | 1324 | debug_compile_errors = true; |
| 1319 | 1325 | } else if (mem.eql(u8, arg, "--verbose-link")) { |