| ... | @@ -259,8 +259,6 @@ fn testAsNeeded(b: *Build, opts: Options) *Step { | ... | @@ -259,8 +259,6 @@ fn testAsNeeded(b: *Build, opts: Options) *Step { |
| 259 | exe.addLibraryPath(libbaz.getEmittedBinDirectory()); | 259 | exe.addLibraryPath(libbaz.getEmittedBinDirectory()); |
| 260 | exe.addRPath(libbaz.getEmittedBinDirectory()); | 260 | exe.addRPath(libbaz.getEmittedBinDirectory()); |
| 261 | exe.linkLibC(); | 261 | exe.linkLibC(); |
| 262 | // https://github.com/ziglang/zig/issues/17619 | | |
| 263 | exe.pie = true; | | |
| 264 | | 262 | |
| 265 | const run = addRunArtifact(exe); | 263 | const run = addRunArtifact(exe); |
| 266 | run.expectStdOutEqual("42\n"); | 264 | run.expectStdOutEqual("42\n"); |
| ... | @@ -289,8 +287,6 @@ fn testAsNeeded(b: *Build, opts: Options) *Step { | ... | @@ -289,8 +287,6 @@ fn testAsNeeded(b: *Build, opts: Options) *Step { |
| 289 | exe.addLibraryPath(libbaz.getEmittedBinDirectory()); | 287 | exe.addLibraryPath(libbaz.getEmittedBinDirectory()); |
| 290 | exe.addRPath(libbaz.getEmittedBinDirectory()); | 288 | exe.addRPath(libbaz.getEmittedBinDirectory()); |
| 291 | exe.linkLibC(); | 289 | exe.linkLibC(); |
| 292 | // https://github.com/ziglang/zig/issues/17619 | | |
| 293 | exe.pie = true; | | |
| 294 | | 290 | |
| 295 | const run = addRunArtifact(exe); | 291 | const run = addRunArtifact(exe); |
| 296 | run.expectStdOutEqual("42\n"); | 292 | run.expectStdOutEqual("42\n"); |
| ... | @@ -509,8 +505,6 @@ fn testCopyrel(b: *Build, opts: Options) *Step { | ... | @@ -509,8 +505,6 @@ fn testCopyrel(b: *Build, opts: Options) *Step { |
| 509 | }); | 505 | }); |
| 510 | exe.linkLibrary(dso); | 506 | exe.linkLibrary(dso); |
| 511 | exe.linkLibC(); | 507 | exe.linkLibC(); |
| 512 | // https://github.com/ziglang/zig/issues/17619 | | |
| 513 | exe.pie = true; | | |
| 514 | | 508 | |
| 515 | const run = addRunArtifact(exe); | 509 | const run = addRunArtifact(exe); |
| 516 | run.expectStdOutEqual("3 5\n"); | 510 | run.expectStdOutEqual("3 5\n"); |
| ... | @@ -676,8 +670,6 @@ fn testDsoPlt(b: *Build, opts: Options) *Step { | ... | @@ -676,8 +670,6 @@ fn testDsoPlt(b: *Build, opts: Options) *Step { |
| 676 | , &.{}); | 670 | , &.{}); |
| 677 | exe.linkLibrary(dso); | 671 | exe.linkLibrary(dso); |
| 678 | exe.linkLibC(); | 672 | exe.linkLibC(); |
| 679 | // https://github.com/ziglang/zig/issues/17619 | | |
| 680 | exe.pie = true; | | |
| 681 | | 673 | |
| 682 | const run = addRunArtifact(exe); | 674 | const run = addRunArtifact(exe); |
| 683 | run.expectStdOutEqual("Hello WORLD\n"); | 675 | run.expectStdOutEqual("Hello WORLD\n"); |
| ... | @@ -715,8 +707,6 @@ fn testDsoUndef(b: *Build, opts: Options) *Step { | ... | @@ -715,8 +707,6 @@ fn testDsoUndef(b: *Build, opts: Options) *Step { |
| 715 | \\} | 707 | \\} |
| 716 | , &.{}); | 708 | , &.{}); |
| 717 | exe.linkLibC(); | 709 | exe.linkLibC(); |
| 718 | // https://github.com/ziglang/zig/issues/17619 | | |
| 719 | exe.pie = true; | | |
| 720 | | 710 | |
| 721 | const run = addRunArtifact(exe); | 711 | const run = addRunArtifact(exe); |
| 722 | run.expectExitCode(0); | 712 | run.expectExitCode(0); |
| ... | @@ -1300,8 +1290,6 @@ fn testIFuncAlias(b: *Build, opts: Options) *Step { | ... | @@ -1300,8 +1290,6 @@ fn testIFuncAlias(b: *Build, opts: Options) *Step { |
| 1300 | , &.{}); | 1290 | , &.{}); |
| 1301 | exe.root_module.pic = true; | 1291 | exe.root_module.pic = true; |
| 1302 | exe.linkLibC(); | 1292 | exe.linkLibC(); |
| 1303 | // https://github.com/ziglang/zig/issues/17619 | | |
| 1304 | exe.pie = true; | | |
| 1305 | | 1293 | |
| 1306 | const run = addRunArtifact(exe); | 1294 | const run = addRunArtifact(exe); |
| 1307 | run.expectExitCode(0); | 1295 | run.expectExitCode(0); |
| ... | @@ -1416,8 +1404,6 @@ fn testIFuncDynamic(b: *Build, opts: Options) *Step { | ... | @@ -1416,8 +1404,6 @@ fn testIFuncDynamic(b: *Build, opts: Options) *Step { |
| 1416 | addCSourceBytes(exe, main_c, &.{}); | 1404 | addCSourceBytes(exe, main_c, &.{}); |
| 1417 | exe.linkLibC(); | 1405 | exe.linkLibC(); |
| 1418 | exe.link_z_lazy = true; | 1406 | exe.link_z_lazy = true; |
| 1419 | // https://github.com/ziglang/zig/issues/17619 | | |
| 1420 | exe.pie = true; | | |
| 1421 | | 1407 | |
| 1422 | const run = addRunArtifact(exe); | 1408 | const run = addRunArtifact(exe); |
| 1423 | run.expectStdOutEqual("Hello world\n"); | 1409 | run.expectStdOutEqual("Hello world\n"); |
| ... | @@ -1427,8 +1413,6 @@ fn testIFuncDynamic(b: *Build, opts: Options) *Step { | ... | @@ -1427,8 +1413,6 @@ fn testIFuncDynamic(b: *Build, opts: Options) *Step { |
| 1427 | const exe = addExecutable(b, opts, .{ .name = "other" }); | 1413 | const exe = addExecutable(b, opts, .{ .name = "other" }); |
| 1428 | addCSourceBytes(exe, main_c, &.{}); | 1414 | addCSourceBytes(exe, main_c, &.{}); |
| 1429 | exe.linkLibC(); | 1415 | exe.linkLibC(); |
| 1430 | // https://github.com/ziglang/zig/issues/17619 | | |
| 1431 | exe.pie = true; | | |
| 1432 | | 1416 | |
| 1433 | const run = addRunArtifact(exe); | 1417 | const run = addRunArtifact(exe); |
| 1434 | run.expectStdOutEqual("Hello world\n"); | 1418 | run.expectStdOutEqual("Hello world\n"); |
| ... | @@ -1492,8 +1476,6 @@ fn testIFuncFuncPtr(b: *Build, opts: Options) *Step { | ... | @@ -1492,8 +1476,6 @@ fn testIFuncFuncPtr(b: *Build, opts: Options) *Step { |
| 1492 | , &.{}); | 1476 | , &.{}); |
| 1493 | exe.root_module.pic = true; | 1477 | exe.root_module.pic = true; |
| 1494 | exe.linkLibC(); | 1478 | exe.linkLibC(); |
| 1495 | // https://github.com/ziglang/zig/issues/17619 | | |
| 1496 | exe.pie = true; | | |
| 1497 | | 1479 | |
| 1498 | const run = addRunArtifact(exe); | 1480 | const run = addRunArtifact(exe); |
| 1499 | run.expectStdOutEqual("3\n"); | 1481 | run.expectStdOutEqual("3\n"); |
| ... | @@ -1523,8 +1505,6 @@ fn testIFuncNoPlt(b: *Build, opts: Options) *Step { | ... | @@ -1523,8 +1505,6 @@ fn testIFuncNoPlt(b: *Build, opts: Options) *Step { |
| 1523 | , &.{"-fno-plt"}); | 1505 | , &.{"-fno-plt"}); |
| 1524 | exe.root_module.pic = true; | 1506 | exe.root_module.pic = true; |
| 1525 | exe.linkLibC(); | 1507 | exe.linkLibC(); |
| 1526 | // https://github.com/ziglang/zig/issues/17619 | | |
| 1527 | exe.pie = true; | | |
| 1528 | | 1508 | |
| 1529 | const run = addRunArtifact(exe); | 1509 | const run = addRunArtifact(exe); |
| 1530 | run.expectStdOutEqual("Hello world\n"); | 1510 | run.expectStdOutEqual("Hello world\n"); |
| ... | @@ -1854,8 +1834,6 @@ fn testLargeAlignmentDso(b: *Build, opts: Options) *Step { | ... | @@ -1854,8 +1834,6 @@ fn testLargeAlignmentDso(b: *Build, opts: Options) *Step { |
| 1854 | , &.{}); | 1834 | , &.{}); |
| 1855 | exe.linkLibrary(dso); | 1835 | exe.linkLibrary(dso); |
| 1856 | exe.linkLibC(); | 1836 | exe.linkLibC(); |
| 1857 | // https://github.com/ziglang/zig/issues/17619 | | |
| 1858 | exe.pie = true; | | |
| 1859 | | 1837 | |
| 1860 | const run = addRunArtifact(exe); | 1838 | const run = addRunArtifact(exe); |
| 1861 | run.expectStdOutEqual("Hello world"); | 1839 | run.expectStdOutEqual("Hello world"); |
| ... | @@ -1890,8 +1868,6 @@ fn testLargeAlignmentExe(b: *Build, opts: Options) *Step { | ... | @@ -1890,8 +1868,6 @@ fn testLargeAlignmentExe(b: *Build, opts: Options) *Step { |
| 1890 | , &.{}); | 1868 | , &.{}); |
| 1891 | exe.link_function_sections = true; | 1869 | exe.link_function_sections = true; |
| 1892 | exe.linkLibC(); | 1870 | exe.linkLibC(); |
| 1893 | // https://github.com/ziglang/zig/issues/17619 | | |
| 1894 | exe.pie = true; | | |
| 1895 | | 1871 | |
| 1896 | const check = exe.checkObject(); | 1872 | const check = exe.checkObject(); |
| 1897 | check.checkInSymtab(); | 1873 | check.checkInSymtab(); |
| ... | @@ -1920,8 +1896,6 @@ fn testLargeBss(b: *Build, opts: Options) *Step { | ... | @@ -1920,8 +1896,6 @@ fn testLargeBss(b: *Build, opts: Options) *Step { |
| 1920 | \\} | 1896 | \\} |
| 1921 | , &.{}); | 1897 | , &.{}); |
| 1922 | exe.linkLibC(); | 1898 | exe.linkLibC(); |
| 1923 | // https://github.com/ziglang/zig/issues/17619 | | |
| 1924 | exe.pie = true; | | |
| 1925 | | 1899 | |
| 1926 | const run = addRunArtifact(exe); | 1900 | const run = addRunArtifact(exe); |
| 1927 | run.expectExitCode(0); | 1901 | run.expectExitCode(0); |
| ... | @@ -2015,8 +1989,6 @@ fn testLdScript(b: *Build, opts: Options) *Step { | ... | @@ -2015,8 +1989,6 @@ fn testLdScript(b: *Build, opts: Options) *Step { |
| 2015 | exe.addLibraryPath(dso.getEmittedBinDirectory()); | 1989 | exe.addLibraryPath(dso.getEmittedBinDirectory()); |
| 2016 | exe.addRPath(dso.getEmittedBinDirectory()); | 1990 | exe.addRPath(dso.getEmittedBinDirectory()); |
| 2017 | exe.linkLibC(); | 1991 | exe.linkLibC(); |
| 2018 | // https://github.com/ziglang/zig/issues/17619 | | |
| 2019 | exe.pie = true; | | |
| 2020 | | 1992 | |
| 2021 | const run = addRunArtifact(exe); | 1993 | const run = addRunArtifact(exe); |
| 2022 | run.expectExitCode(0); | 1994 | run.expectExitCode(0); |
| ... | @@ -2368,8 +2340,6 @@ fn testPltGot(b: *Build, opts: Options) *Step { | ... | @@ -2368,8 +2340,6 @@ fn testPltGot(b: *Build, opts: Options) *Step { |
| 2368 | exe.linkLibrary(dso); | 2340 | exe.linkLibrary(dso); |
| 2369 | exe.root_module.pic = true; | 2341 | exe.root_module.pic = true; |
| 2370 | exe.linkLibC(); | 2342 | exe.linkLibC(); |
| 2371 | // https://github.com/ziglang/zig/issues/17619 | | |
| 2372 | exe.pie = true; | | |
| 2373 | | 2343 | |
| 2374 | const run = addRunArtifact(exe); | 2344 | const run = addRunArtifact(exe); |
| 2375 | run.expectStdOutEqual("Hello world\n"); | 2345 | run.expectStdOutEqual("Hello world\n"); |
| ... | @@ -2772,8 +2742,6 @@ fn testTlsDso(b: *Build, opts: Options) *Step { | ... | @@ -2772,8 +2742,6 @@ fn testTlsDso(b: *Build, opts: Options) *Step { |
| 2772 | , &.{}); | 2742 | , &.{}); |
| 2773 | exe.linkLibrary(dso); | 2743 | exe.linkLibrary(dso); |
| 2774 | exe.linkLibC(); | 2744 | exe.linkLibC(); |
| 2775 | // https://github.com/ziglang/zig/issues/17619 | | |
| 2776 | exe.pie = true; | | |
| 2777 | | 2745 | |
| 2778 | const run = addRunArtifact(exe); | 2746 | const run = addRunArtifact(exe); |
| 2779 | run.expectStdOutEqual("5 3 5 3 5 3\n"); | 2747 | run.expectStdOutEqual("5 3 5 3 5 3\n"); |
| ... | @@ -2932,8 +2900,6 @@ fn testTlsGdNoPlt(b: *Build, opts: Options) *Step { | ... | @@ -2932,8 +2900,6 @@ fn testTlsGdNoPlt(b: *Build, opts: Options) *Step { |
| 2932 | exe.linkLibrary(a_so); | 2900 | exe.linkLibrary(a_so); |
| 2933 | exe.linkLibrary(b_so); | 2901 | exe.linkLibrary(b_so); |
| 2934 | exe.linkLibC(); | 2902 | exe.linkLibC(); |
| 2935 | // https://github.com/ziglang/zig/issues/17619 | | |
| 2936 | exe.pie = true; | | |
| 2937 | | 2903 | |
| 2938 | const run = addRunArtifact(exe); | 2904 | const run = addRunArtifact(exe); |
| 2939 | run.expectStdOutEqual("1 2 3 4 5 6\n"); | 2905 | run.expectStdOutEqual("1 2 3 4 5 6\n"); |
| ... | @@ -2947,8 +2913,6 @@ fn testTlsGdNoPlt(b: *Build, opts: Options) *Step { | ... | @@ -2947,8 +2913,6 @@ fn testTlsGdNoPlt(b: *Build, opts: Options) *Step { |
| 2947 | exe.linkLibrary(b_so); | 2913 | exe.linkLibrary(b_so); |
| 2948 | exe.linkLibC(); | 2914 | exe.linkLibC(); |
| 2949 | // exe.link_relax = false; // TODO | 2915 | // exe.link_relax = false; // TODO |
| 2950 | // https://github.com/ziglang/zig/issues/17619 | | |
| 2951 | exe.pie = true; | | |
| 2952 | | 2916 | |
| 2953 | const run = addRunArtifact(exe); | 2917 | const run = addRunArtifact(exe); |
| 2954 | run.expectStdOutEqual("1 2 3 4 5 6\n"); | 2918 | run.expectStdOutEqual("1 2 3 4 5 6\n"); |
| ... | @@ -2996,8 +2960,6 @@ fn testTlsGdToIe(b: *Build, opts: Options) *Step { | ... | @@ -2996,8 +2960,6 @@ fn testTlsGdToIe(b: *Build, opts: Options) *Step { |
| 2996 | exe.addObject(b_o); | 2960 | exe.addObject(b_o); |
| 2997 | exe.linkLibrary(dso); | 2961 | exe.linkLibrary(dso); |
| 2998 | exe.linkLibC(); | 2962 | exe.linkLibC(); |
| 2999 | // https://github.com/ziglang/zig/issues/17619 | | |
| 3000 | exe.pie = true; | | |
| 3001 | | 2963 | |
| 3002 | const run = addRunArtifact(exe); | 2964 | const run = addRunArtifact(exe); |
| 3003 | run.expectStdOutEqual("1 2 3\n"); | 2965 | run.expectStdOutEqual("1 2 3\n"); |
| ... | @@ -3013,8 +2975,6 @@ fn testTlsGdToIe(b: *Build, opts: Options) *Step { | ... | @@ -3013,8 +2975,6 @@ fn testTlsGdToIe(b: *Build, opts: Options) *Step { |
| 3013 | exe.addObject(b_o); | 2975 | exe.addObject(b_o); |
| 3014 | exe.linkLibrary(dso); | 2976 | exe.linkLibrary(dso); |
| 3015 | exe.linkLibC(); | 2977 | exe.linkLibC(); |
| 3016 | // https://github.com/ziglang/zig/issues/17619 | | |
| 3017 | exe.pie = true; | | |
| 3018 | | 2978 | |
| 3019 | const run = addRunArtifact(exe); | 2979 | const run = addRunArtifact(exe); |
| 3020 | run.expectStdOutEqual("1 2 3\n"); | 2980 | run.expectStdOutEqual("1 2 3\n"); |
| ... | @@ -3096,8 +3056,6 @@ fn testTlsIe(b: *Build, opts: Options) *Step { | ... | @@ -3096,8 +3056,6 @@ fn testTlsIe(b: *Build, opts: Options) *Step { |
| 3096 | exe.addObject(main_o); | 3056 | exe.addObject(main_o); |
| 3097 | exe.linkLibrary(dso); | 3057 | exe.linkLibrary(dso); |
| 3098 | exe.linkLibC(); | 3058 | exe.linkLibC(); |
| 3099 | // https://github.com/ziglang/zig/issues/17619 | | |
| 3100 | exe.pie = true; | | |
| 3101 | | 3059 | |
| 3102 | const run = addRunArtifact(exe); | 3060 | const run = addRunArtifact(exe); |
| 3103 | run.expectStdOutEqual(exp_stdout); | 3061 | run.expectStdOutEqual(exp_stdout); |
| ... | @@ -3110,8 +3068,6 @@ fn testTlsIe(b: *Build, opts: Options) *Step { | ... | @@ -3110,8 +3068,6 @@ fn testTlsIe(b: *Build, opts: Options) *Step { |
| 3110 | exe.linkLibrary(dso); | 3068 | exe.linkLibrary(dso); |
| 3111 | exe.linkLibC(); | 3069 | exe.linkLibC(); |
| 3112 | // exe.link_relax = false; // TODO | 3070 | // exe.link_relax = false; // TODO |
| 3113 | // https://github.com/ziglang/zig/issues/17619 | | |
| 3114 | exe.pie = true; | | |
| 3115 | | 3071 | |
| 3116 | const run = addRunArtifact(exe); | 3072 | const run = addRunArtifact(exe); |
| 3117 | run.expectStdOutEqual(exp_stdout); | 3073 | run.expectStdOutEqual(exp_stdout); |
| ... | @@ -3167,8 +3123,6 @@ fn testTlsLargeAlignment(b: *Build, opts: Options) *Step { | ... | @@ -3167,8 +3123,6 @@ fn testTlsLargeAlignment(b: *Build, opts: Options) *Step { |
| 3167 | exe.addObject(c_o); | 3123 | exe.addObject(c_o); |
| 3168 | exe.linkLibrary(dso); | 3124 | exe.linkLibrary(dso); |
| 3169 | exe.linkLibC(); | 3125 | exe.linkLibC(); |
| 3170 | // https://github.com/ziglang/zig/issues/17619 | | |
| 3171 | exe.pie = true; | | |
| 3172 | | 3126 | |
| 3173 | const run = addRunArtifact(exe); | 3127 | const run = addRunArtifact(exe); |
| 3174 | run.expectStdOutEqual("42 1 2 3\n"); | 3128 | run.expectStdOutEqual("42 1 2 3\n"); |
| ... | @@ -3181,8 +3135,6 @@ fn testTlsLargeAlignment(b: *Build, opts: Options) *Step { | ... | @@ -3181,8 +3135,6 @@ fn testTlsLargeAlignment(b: *Build, opts: Options) *Step { |
| 3181 | exe.addObject(b_o); | 3135 | exe.addObject(b_o); |
| 3182 | exe.addObject(c_o); | 3136 | exe.addObject(c_o); |
| 3183 | exe.linkLibC(); | 3137 | exe.linkLibC(); |
| 3184 | // https://github.com/ziglang/zig/issues/17619 | | |
| 3185 | exe.pie = true; | | |
| 3186 | | 3138 | |
| 3187 | const run = addRunArtifact(exe); | 3139 | const run = addRunArtifact(exe); |
| 3188 | run.expectStdOutEqual("42 1 2 3\n"); | 3140 | run.expectStdOutEqual("42 1 2 3\n"); |
| ... | @@ -3216,8 +3168,6 @@ fn testTlsLargeTbss(b: *Build, opts: Options) *Step { | ... | @@ -3216,8 +3168,6 @@ fn testTlsLargeTbss(b: *Build, opts: Options) *Step { |
| 3216 | \\} | 3168 | \\} |
| 3217 | , &.{}); | 3169 | , &.{}); |
| 3218 | exe.linkLibC(); | 3170 | exe.linkLibC(); |
| 3219 | // https://github.com/ziglang/zig/issues/17619 | | |
| 3220 | exe.pie = true; | | |
| 3221 | | 3171 | |
| 3222 | const run = addRunArtifact(exe); | 3172 | const run = addRunArtifact(exe); |
| 3223 | run.expectStdOutEqual("3 0 5 0 0 0\n"); | 3173 | run.expectStdOutEqual("3 0 5 0 0 0\n"); |
| ... | @@ -3240,8 +3190,6 @@ fn testTlsLargeStaticImage(b: *Build, opts: Options) *Step { | ... | @@ -3240,8 +3190,6 @@ fn testTlsLargeStaticImage(b: *Build, opts: Options) *Step { |
| 3240 | , &.{}); | 3190 | , &.{}); |
| 3241 | exe.root_module.pic = true; | 3191 | exe.root_module.pic = true; |
| 3242 | exe.linkLibC(); | 3192 | exe.linkLibC(); |
| 3243 | // https://github.com/ziglang/zig/issues/17619 | | |
| 3244 | exe.pie = true; | | |
| 3245 | | 3193 | |
| 3246 | const run = addRunArtifact(exe); | 3194 | const run = addRunArtifact(exe); |
| 3247 | run.expectStdOutEqual("1 2 3 0 5\n"); | 3195 | run.expectStdOutEqual("1 2 3 0 5\n"); |
| ... | @@ -3286,8 +3234,6 @@ fn testTlsLd(b: *Build, opts: Options) *Step { | ... | @@ -3286,8 +3234,6 @@ fn testTlsLd(b: *Build, opts: Options) *Step { |
| 3286 | exe.addObject(main_o); | 3234 | exe.addObject(main_o); |
| 3287 | exe.addObject(a_o); | 3235 | exe.addObject(a_o); |
| 3288 | exe.linkLibC(); | 3236 | exe.linkLibC(); |
| 3289 | // https://github.com/ziglang/zig/issues/17619 | | |
| 3290 | exe.pie = true; | | |
| 3291 | | 3237 | |
| 3292 | const run = addRunArtifact(exe); | 3238 | const run = addRunArtifact(exe); |
| 3293 | run.expectStdOutEqual(exp_stdout); | 3239 | run.expectStdOutEqual(exp_stdout); |
| ... | @@ -3300,8 +3246,6 @@ fn testTlsLd(b: *Build, opts: Options) *Step { | ... | @@ -3300,8 +3246,6 @@ fn testTlsLd(b: *Build, opts: Options) *Step { |
| 3300 | exe.addObject(a_o); | 3246 | exe.addObject(a_o); |
| 3301 | exe.linkLibC(); | 3247 | exe.linkLibC(); |
| 3302 | // exe.link_relax = false; // TODO | 3248 | // exe.link_relax = false; // TODO |
| 3303 | // https://github.com/ziglang/zig/issues/17619 | | |
| 3304 | exe.pie = true; | | |
| 3305 | | 3249 | |
| 3306 | const run = addRunArtifact(exe); | 3250 | const run = addRunArtifact(exe); |
| 3307 | run.expectStdOutEqual(exp_stdout); | 3251 | run.expectStdOutEqual(exp_stdout); |
| ... | @@ -3335,8 +3279,6 @@ fn testTlsLdDso(b: *Build, opts: Options) *Step { | ... | @@ -3335,8 +3279,6 @@ fn testTlsLdDso(b: *Build, opts: Options) *Step { |
| 3335 | , &.{}); | 3279 | , &.{}); |
| 3336 | exe.linkLibrary(dso); | 3280 | exe.linkLibrary(dso); |
| 3337 | exe.linkLibC(); | 3281 | exe.linkLibC(); |
| 3338 | // https://github.com/ziglang/zig/issues/17619 | | |
| 3339 | exe.pie = true; | | |
| 3340 | | 3282 | |
| 3341 | const run = addRunArtifact(exe); | 3283 | const run = addRunArtifact(exe); |
| 3342 | run.expectStdOutEqual("1 2\n"); | 3284 | run.expectStdOutEqual("1 2\n"); |
| ... | @@ -3380,8 +3322,6 @@ fn testTlsLdNoPlt(b: *Build, opts: Options) *Step { | ... | @@ -3380,8 +3322,6 @@ fn testTlsLdNoPlt(b: *Build, opts: Options) *Step { |
| 3380 | exe.addObject(a_o); | 3322 | exe.addObject(a_o); |
| 3381 | exe.addObject(b_o); | 3323 | exe.addObject(b_o); |
| 3382 | exe.linkLibC(); | 3324 | exe.linkLibC(); |
| 3383 | // https://github.com/ziglang/zig/issues/17619 | | |
| 3384 | exe.pie = true; | | |
| 3385 | | 3325 | |
| 3386 | const run = addRunArtifact(exe); | 3326 | const run = addRunArtifact(exe); |
| 3387 | run.expectStdOutEqual("3 5 3 5\n"); | 3327 | run.expectStdOutEqual("3 5 3 5\n"); |
| ... | @@ -3394,8 +3334,6 @@ fn testTlsLdNoPlt(b: *Build, opts: Options) *Step { | ... | @@ -3394,8 +3334,6 @@ fn testTlsLdNoPlt(b: *Build, opts: Options) *Step { |
| 3394 | exe.addObject(b_o); | 3334 | exe.addObject(b_o); |
| 3395 | exe.linkLibC(); | 3335 | exe.linkLibC(); |
| 3396 | // exe.link_relax = false; // TODO | 3336 | // exe.link_relax = false; // TODO |
| 3397 | // https://github.com/ziglang/zig/issues/17619 | | |
| 3398 | exe.pie = true; | | |
| 3399 | | 3337 | |
| 3400 | const run = addRunArtifact(exe); | 3338 | const run = addRunArtifact(exe); |
| 3401 | run.expectStdOutEqual("3 5 3 5\n"); | 3339 | run.expectStdOutEqual("3 5 3 5\n"); |
| ... | @@ -3481,8 +3419,6 @@ fn testTlsOffsetAlignment(b: *Build, opts: Options) *Step { | ... | @@ -3481,8 +3419,6 @@ fn testTlsOffsetAlignment(b: *Build, opts: Options) *Step { |
| 3481 | exe.addRPath(dso.getEmittedBinDirectory()); | 3419 | exe.addRPath(dso.getEmittedBinDirectory()); |
| 3482 | exe.linkLibC(); | 3420 | exe.linkLibC(); |
| 3483 | exe.root_module.pic = true; | 3421 | exe.root_module.pic = true; |
| 3484 | // https://github.com/ziglang/zig/issues/17619 | | |
| 3485 | exe.pie = true; | | |
| 3486 | | 3422 | |
| 3487 | const run = addRunArtifact(exe); | 3423 | const run = addRunArtifact(exe); |
| 3488 | run.expectExitCode(0); | 3424 | run.expectExitCode(0); |
| ... | @@ -3519,8 +3455,6 @@ fn testTlsPic(b: *Build, opts: Options) *Step { | ... | @@ -3519,8 +3455,6 @@ fn testTlsPic(b: *Build, opts: Options) *Step { |
| 3519 | , &.{}); | 3455 | , &.{}); |
| 3520 | exe.addObject(obj); | 3456 | exe.addObject(obj); |
| 3521 | exe.linkLibC(); | 3457 | exe.linkLibC(); |
| 3522 | // https://github.com/ziglang/zig/issues/17619 | | |
| 3523 | exe.pie = true; | | |
| 3524 | | 3458 | |
| 3525 | const run = addRunArtifact(exe); | 3459 | const run = addRunArtifact(exe); |
| 3526 | run.expectStdOutEqual("3 5 3 5\n"); | 3460 | run.expectStdOutEqual("3 5 3 5\n"); |
| ... | @@ -3568,8 +3502,6 @@ fn testTlsSmallAlignment(b: *Build, opts: Options) *Step { | ... | @@ -3568,8 +3502,6 @@ fn testTlsSmallAlignment(b: *Build, opts: Options) *Step { |
| 3568 | exe.addObject(b_o); | 3502 | exe.addObject(b_o); |
| 3569 | exe.addObject(c_o); | 3503 | exe.addObject(c_o); |
| 3570 | exe.linkLibC(); | 3504 | exe.linkLibC(); |
| 3571 | // https://github.com/ziglang/zig/issues/17619 | | |
| 3572 | exe.pie = true; | | |
| 3573 | | 3505 | |
| 3574 | const run = addRunArtifact(exe); | 3506 | const run = addRunArtifact(exe); |
| 3575 | run.expectStdOutEqual("42\n"); | 3507 | run.expectStdOutEqual("42\n"); |
| ... | @@ -3585,8 +3517,6 @@ fn testTlsSmallAlignment(b: *Build, opts: Options) *Step { | ... | @@ -3585,8 +3517,6 @@ fn testTlsSmallAlignment(b: *Build, opts: Options) *Step { |
| 3585 | exe.addObject(c_o); | 3517 | exe.addObject(c_o); |
| 3586 | exe.linkLibrary(dso); | 3518 | exe.linkLibrary(dso); |
| 3587 | exe.linkLibC(); | 3519 | exe.linkLibC(); |
| 3588 | // https://github.com/ziglang/zig/issues/17619 | | |
| 3589 | exe.pie = true; | | |
| 3590 | | 3520 | |
| 3591 | const run = addRunArtifact(exe); | 3521 | const run = addRunArtifact(exe); |
| 3592 | run.expectStdOutEqual("42\n"); | 3522 | run.expectStdOutEqual("42\n"); |
| ... | @@ -3737,8 +3667,6 @@ fn testWeakExports(b: *Build, opts: Options) *Step { | ... | @@ -3737,8 +3667,6 @@ fn testWeakExports(b: *Build, opts: Options) *Step { |
| 3737 | const exe = addExecutable(b, opts, .{ .name = "main" }); | 3667 | const exe = addExecutable(b, opts, .{ .name = "main" }); |
| 3738 | exe.addObject(obj); | 3668 | exe.addObject(obj); |
| 3739 | exe.linkLibC(); | 3669 | exe.linkLibC(); |
| 3740 | // https://github.com/ziglang/zig/issues/17619 | | |
| 3741 | exe.pie = true; | | |
| 3742 | | 3670 | |
| 3743 | const check = exe.checkObject(); | 3671 | const check = exe.checkObject(); |
| 3744 | check.checkInDynamicSymtab(); | 3672 | check.checkInDynamicSymtab(); |
| ... | @@ -3771,8 +3699,6 @@ fn testWeakUndefsDso(b: *Build, opts: Options) *Step { | ... | @@ -3771,8 +3699,6 @@ fn testWeakUndefsDso(b: *Build, opts: Options) *Step { |
| 3771 | , &.{}); | 3699 | , &.{}); |
| 3772 | exe.linkLibrary(dso); | 3700 | exe.linkLibrary(dso); |
| 3773 | exe.linkLibC(); | 3701 | exe.linkLibC(); |
| 3774 | // https://github.com/ziglang/zig/issues/17619 | | |
| 3775 | exe.pie = true; | | |
| 3776 | | 3702 | |
| 3777 | const run = addRunArtifact(exe); | 3703 | const run = addRunArtifact(exe); |
| 3778 | run.expectStdOutEqual("bar=-1\n"); | 3704 | run.expectStdOutEqual("bar=-1\n"); |
| ... | @@ -3789,8 +3715,6 @@ fn testWeakUndefsDso(b: *Build, opts: Options) *Step { | ... | @@ -3789,8 +3715,6 @@ fn testWeakUndefsDso(b: *Build, opts: Options) *Step { |
| 3789 | , &.{}); | 3715 | , &.{}); |
| 3790 | exe.linkLibrary(dso); | 3716 | exe.linkLibrary(dso); |
| 3791 | exe.linkLibC(); | 3717 | exe.linkLibC(); |
| 3792 | // https://github.com/ziglang/zig/issues/17619 | | |
| 3793 | exe.pie = true; | | |
| 3794 | | 3718 | |
| 3795 | const run = addRunArtifact(exe); | 3719 | const run = addRunArtifact(exe); |
| 3796 | run.expectStdOutEqual("bar=5\n"); | 3720 | run.expectStdOutEqual("bar=5\n"); |
| ... | @@ -3905,8 +3829,6 @@ fn testZText(b: *Build, opts: Options) *Step { | ... | @@ -3905,8 +3829,6 @@ fn testZText(b: *Build, opts: Options) *Step { |
| 3905 | , &.{}); | 3829 | , &.{}); |
| 3906 | exe.linkLibrary(dso); | 3830 | exe.linkLibrary(dso); |
| 3907 | exe.linkLibC(); | 3831 | exe.linkLibC(); |
| 3908 | // https://github.com/ziglang/zig/issues/17619 | | |
| 3909 | exe.pie = true; | | |
| 3910 | | 3832 | |
| 3911 | const run = addRunArtifact(exe); | 3833 | const run = addRunArtifact(exe); |
| 3912 | run.expectStdOutEqual("3\n"); | 3834 | run.expectStdOutEqual("3\n"); |