| ... | ... | @@ -132,6 +132,7 @@ static int print_full_usage(const char *arg0, FILE *file, int return_code) { |
| 132 | 132 | " --ver-major [ver] dynamic library semver major version\n" |
| 133 | 133 | " --ver-minor [ver] dynamic library semver minor version\n" |
| 134 | 134 | " --ver-patch [ver] dynamic library semver patch version\n" |
| 135 | " -Bsymbolic bind global references locally\n" |
| 135 | 136 | "\n" |
| 136 | 137 | "Test Options:\n" |
| 137 | 138 | " --test-filter [text] skip tests that do not match filter\n" |
| ... | ... | @@ -452,6 +453,7 @@ static int main0(int argc, char **argv) { |
| 452 | 453 | Buf *linker_optimization = nullptr; |
| 453 | 454 | OptionalBool linker_gc_sections = OptionalBoolNull; |
| 454 | 455 | OptionalBool linker_allow_shlib_undefined = OptionalBoolNull; |
| 456 | OptionalBool linker_bind_global_refs_locally = OptionalBoolNull; |
| 455 | 457 | bool linker_z_nodelete = false; |
| 456 | 458 | bool linker_z_defs = false; |
| 457 | 459 | size_t stack_size_override = 0; |
| ... | ... | @@ -842,6 +844,8 @@ static int main0(int argc, char **argv) { |
| 842 | 844 | buf_eql_str(arg, "-no-allow-shlib-undefined")) |
| 843 | 845 | { |
| 844 | 846 | linker_allow_shlib_undefined = OptionalBoolFalse; |
| 847 | } else if (buf_eql_str(arg, "-Bsymbolic")) { |
| 848 | linker_bind_global_refs_locally = OptionalBoolTrue; |
| 845 | 849 | } else if (buf_eql_str(arg, "-z")) { |
| 846 | 850 | i += 1; |
| 847 | 851 | if (i >= linker_args.length) { |
| ... | ... | @@ -1013,6 +1017,8 @@ static int main0(int argc, char **argv) { |
| 1013 | 1017 | want_single_threaded = true;; |
| 1014 | 1018 | } else if (strcmp(arg, "--bundle-compiler-rt") == 0) { |
| 1015 | 1019 | bundle_compiler_rt = true; |
| 1020 | } else if (strcmp(arg, "-Bsymbolic") == 0) { |
| 1021 | linker_bind_global_refs_locally = OptionalBoolTrue; |
| 1016 | 1022 | } else if (strcmp(arg, "--test-cmd-bin") == 0) { |
| 1017 | 1023 | test_exec_args.append(nullptr); |
| 1018 | 1024 | } else if (arg[1] == 'D' && arg[2] != 0) { |
| ... | ... | @@ -1609,6 +1615,7 @@ static int main0(int argc, char **argv) { |
| 1609 | 1615 | g->linker_optimization = linker_optimization; |
| 1610 | 1616 | g->linker_gc_sections = linker_gc_sections; |
| 1611 | 1617 | g->linker_allow_shlib_undefined = linker_allow_shlib_undefined; |
| 1618 | g->linker_bind_global_refs_locally = linker_bind_global_refs_locally; |
| 1612 | 1619 | g->linker_z_nodelete = linker_z_nodelete; |
| 1613 | 1620 | g->linker_z_defs = linker_z_defs; |
| 1614 | 1621 | g->stack_size_override = stack_size_override; |