authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-03-10 10:39:31+01:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2024-03-10 10:39:31+01:00
log1a6b2e84ac5d88f00bfb281c8101f2b69a962b67
treeb8cf9af038e72ae88c01ce7294ae4e8e8ce9a5ff
parent2cdbad6f10ec5a3d07de3d02a2f0cb9e9660bd58

test/link/elf: remove pie hack due to QEMU bug that is now fixed


1 files changed, 0 insertions(+), 78 deletions(-)

test/link/elf.zig-78
......@@ -259,8 +259,6 @@ fn testAsNeeded(b: *Build, opts: Options) *Step {
259259 exe.addLibraryPath(libbaz.getEmittedBinDirectory());
260260 exe.addRPath(libbaz.getEmittedBinDirectory());
261261 exe.linkLibC();
262 // https://github.com/ziglang/zig/issues/17619
263 exe.pie = true;
264262
265263 const run = addRunArtifact(exe);
266264 run.expectStdOutEqual("42\n");
......@@ -289,8 +287,6 @@ fn testAsNeeded(b: *Build, opts: Options) *Step {
289287 exe.addLibraryPath(libbaz.getEmittedBinDirectory());
290288 exe.addRPath(libbaz.getEmittedBinDirectory());
291289 exe.linkLibC();
292 // https://github.com/ziglang/zig/issues/17619
293 exe.pie = true;
294290
295291 const run = addRunArtifact(exe);
296292 run.expectStdOutEqual("42\n");
......@@ -509,8 +505,6 @@ fn testCopyrel(b: *Build, opts: Options) *Step {
509505 });
510506 exe.linkLibrary(dso);
511507 exe.linkLibC();
512 // https://github.com/ziglang/zig/issues/17619
513 exe.pie = true;
514508
515509 const run = addRunArtifact(exe);
516510 run.expectStdOutEqual("3 5\n");
......@@ -676,8 +670,6 @@ fn testDsoPlt(b: *Build, opts: Options) *Step {
676670 , &.{});
677671 exe.linkLibrary(dso);
678672 exe.linkLibC();
679 // https://github.com/ziglang/zig/issues/17619
680 exe.pie = true;
681673
682674 const run = addRunArtifact(exe);
683675 run.expectStdOutEqual("Hello WORLD\n");
......@@ -715,8 +707,6 @@ fn testDsoUndef(b: *Build, opts: Options) *Step {
715707 \\}
716708 , &.{});
717709 exe.linkLibC();
718 // https://github.com/ziglang/zig/issues/17619
719 exe.pie = true;
720710
721711 const run = addRunArtifact(exe);
722712 run.expectExitCode(0);
......@@ -1300,8 +1290,6 @@ fn testIFuncAlias(b: *Build, opts: Options) *Step {
13001290 , &.{});
13011291 exe.root_module.pic = true;
13021292 exe.linkLibC();
1303 // https://github.com/ziglang/zig/issues/17619
1304 exe.pie = true;
13051293
13061294 const run = addRunArtifact(exe);
13071295 run.expectExitCode(0);
......@@ -1416,8 +1404,6 @@ fn testIFuncDynamic(b: *Build, opts: Options) *Step {
14161404 addCSourceBytes(exe, main_c, &.{});
14171405 exe.linkLibC();
14181406 exe.link_z_lazy = true;
1419 // https://github.com/ziglang/zig/issues/17619
1420 exe.pie = true;
14211407
14221408 const run = addRunArtifact(exe);
14231409 run.expectStdOutEqual("Hello world\n");
......@@ -1427,8 +1413,6 @@ fn testIFuncDynamic(b: *Build, opts: Options) *Step {
14271413 const exe = addExecutable(b, opts, .{ .name = "other" });
14281414 addCSourceBytes(exe, main_c, &.{});
14291415 exe.linkLibC();
1430 // https://github.com/ziglang/zig/issues/17619
1431 exe.pie = true;
14321416
14331417 const run = addRunArtifact(exe);
14341418 run.expectStdOutEqual("Hello world\n");
......@@ -1492,8 +1476,6 @@ fn testIFuncFuncPtr(b: *Build, opts: Options) *Step {
14921476 , &.{});
14931477 exe.root_module.pic = true;
14941478 exe.linkLibC();
1495 // https://github.com/ziglang/zig/issues/17619
1496 exe.pie = true;
14971479
14981480 const run = addRunArtifact(exe);
14991481 run.expectStdOutEqual("3\n");
......@@ -1523,8 +1505,6 @@ fn testIFuncNoPlt(b: *Build, opts: Options) *Step {
15231505 , &.{"-fno-plt"});
15241506 exe.root_module.pic = true;
15251507 exe.linkLibC();
1526 // https://github.com/ziglang/zig/issues/17619
1527 exe.pie = true;
15281508
15291509 const run = addRunArtifact(exe);
15301510 run.expectStdOutEqual("Hello world\n");
......@@ -1854,8 +1834,6 @@ fn testLargeAlignmentDso(b: *Build, opts: Options) *Step {
18541834 , &.{});
18551835 exe.linkLibrary(dso);
18561836 exe.linkLibC();
1857 // https://github.com/ziglang/zig/issues/17619
1858 exe.pie = true;
18591837
18601838 const run = addRunArtifact(exe);
18611839 run.expectStdOutEqual("Hello world");
......@@ -1890,8 +1868,6 @@ fn testLargeAlignmentExe(b: *Build, opts: Options) *Step {
18901868 , &.{});
18911869 exe.link_function_sections = true;
18921870 exe.linkLibC();
1893 // https://github.com/ziglang/zig/issues/17619
1894 exe.pie = true;
18951871
18961872 const check = exe.checkObject();
18971873 check.checkInSymtab();
......@@ -1920,8 +1896,6 @@ fn testLargeBss(b: *Build, opts: Options) *Step {
19201896 \\}
19211897 , &.{});
19221898 exe.linkLibC();
1923 // https://github.com/ziglang/zig/issues/17619
1924 exe.pie = true;
19251899
19261900 const run = addRunArtifact(exe);
19271901 run.expectExitCode(0);
......@@ -2015,8 +1989,6 @@ fn testLdScript(b: *Build, opts: Options) *Step {
20151989 exe.addLibraryPath(dso.getEmittedBinDirectory());
20161990 exe.addRPath(dso.getEmittedBinDirectory());
20171991 exe.linkLibC();
2018 // https://github.com/ziglang/zig/issues/17619
2019 exe.pie = true;
20201992
20211993 const run = addRunArtifact(exe);
20221994 run.expectExitCode(0);
......@@ -2368,8 +2340,6 @@ fn testPltGot(b: *Build, opts: Options) *Step {
23682340 exe.linkLibrary(dso);
23692341 exe.root_module.pic = true;
23702342 exe.linkLibC();
2371 // https://github.com/ziglang/zig/issues/17619
2372 exe.pie = true;
23732343
23742344 const run = addRunArtifact(exe);
23752345 run.expectStdOutEqual("Hello world\n");
......@@ -2772,8 +2742,6 @@ fn testTlsDso(b: *Build, opts: Options) *Step {
27722742 , &.{});
27732743 exe.linkLibrary(dso);
27742744 exe.linkLibC();
2775 // https://github.com/ziglang/zig/issues/17619
2776 exe.pie = true;
27772745
27782746 const run = addRunArtifact(exe);
27792747 run.expectStdOutEqual("5 3 5 3 5 3\n");
......@@ -2932,8 +2900,6 @@ fn testTlsGdNoPlt(b: *Build, opts: Options) *Step {
29322900 exe.linkLibrary(a_so);
29332901 exe.linkLibrary(b_so);
29342902 exe.linkLibC();
2935 // https://github.com/ziglang/zig/issues/17619
2936 exe.pie = true;
29372903
29382904 const run = addRunArtifact(exe);
29392905 run.expectStdOutEqual("1 2 3 4 5 6\n");
......@@ -2947,8 +2913,6 @@ fn testTlsGdNoPlt(b: *Build, opts: Options) *Step {
29472913 exe.linkLibrary(b_so);
29482914 exe.linkLibC();
29492915 // exe.link_relax = false; // TODO
2950 // https://github.com/ziglang/zig/issues/17619
2951 exe.pie = true;
29522916
29532917 const run = addRunArtifact(exe);
29542918 run.expectStdOutEqual("1 2 3 4 5 6\n");
......@@ -2996,8 +2960,6 @@ fn testTlsGdToIe(b: *Build, opts: Options) *Step {
29962960 exe.addObject(b_o);
29972961 exe.linkLibrary(dso);
29982962 exe.linkLibC();
2999 // https://github.com/ziglang/zig/issues/17619
3000 exe.pie = true;
30012963
30022964 const run = addRunArtifact(exe);
30032965 run.expectStdOutEqual("1 2 3\n");
......@@ -3013,8 +2975,6 @@ fn testTlsGdToIe(b: *Build, opts: Options) *Step {
30132975 exe.addObject(b_o);
30142976 exe.linkLibrary(dso);
30152977 exe.linkLibC();
3016 // https://github.com/ziglang/zig/issues/17619
3017 exe.pie = true;
30182978
30192979 const run = addRunArtifact(exe);
30202980 run.expectStdOutEqual("1 2 3\n");
......@@ -3096,8 +3056,6 @@ fn testTlsIe(b: *Build, opts: Options) *Step {
30963056 exe.addObject(main_o);
30973057 exe.linkLibrary(dso);
30983058 exe.linkLibC();
3099 // https://github.com/ziglang/zig/issues/17619
3100 exe.pie = true;
31013059
31023060 const run = addRunArtifact(exe);
31033061 run.expectStdOutEqual(exp_stdout);
......@@ -3110,8 +3068,6 @@ fn testTlsIe(b: *Build, opts: Options) *Step {
31103068 exe.linkLibrary(dso);
31113069 exe.linkLibC();
31123070 // exe.link_relax = false; // TODO
3113 // https://github.com/ziglang/zig/issues/17619
3114 exe.pie = true;
31153071
31163072 const run = addRunArtifact(exe);
31173073 run.expectStdOutEqual(exp_stdout);
......@@ -3167,8 +3123,6 @@ fn testTlsLargeAlignment(b: *Build, opts: Options) *Step {
31673123 exe.addObject(c_o);
31683124 exe.linkLibrary(dso);
31693125 exe.linkLibC();
3170 // https://github.com/ziglang/zig/issues/17619
3171 exe.pie = true;
31723126
31733127 const run = addRunArtifact(exe);
31743128 run.expectStdOutEqual("42 1 2 3\n");
......@@ -3181,8 +3135,6 @@ fn testTlsLargeAlignment(b: *Build, opts: Options) *Step {
31813135 exe.addObject(b_o);
31823136 exe.addObject(c_o);
31833137 exe.linkLibC();
3184 // https://github.com/ziglang/zig/issues/17619
3185 exe.pie = true;
31863138
31873139 const run = addRunArtifact(exe);
31883140 run.expectStdOutEqual("42 1 2 3\n");
......@@ -3216,8 +3168,6 @@ fn testTlsLargeTbss(b: *Build, opts: Options) *Step {
32163168 \\}
32173169 , &.{});
32183170 exe.linkLibC();
3219 // https://github.com/ziglang/zig/issues/17619
3220 exe.pie = true;
32213171
32223172 const run = addRunArtifact(exe);
32233173 run.expectStdOutEqual("3 0 5 0 0 0\n");
......@@ -3240,8 +3190,6 @@ fn testTlsLargeStaticImage(b: *Build, opts: Options) *Step {
32403190 , &.{});
32413191 exe.root_module.pic = true;
32423192 exe.linkLibC();
3243 // https://github.com/ziglang/zig/issues/17619
3244 exe.pie = true;
32453193
32463194 const run = addRunArtifact(exe);
32473195 run.expectStdOutEqual("1 2 3 0 5\n");
......@@ -3286,8 +3234,6 @@ fn testTlsLd(b: *Build, opts: Options) *Step {
32863234 exe.addObject(main_o);
32873235 exe.addObject(a_o);
32883236 exe.linkLibC();
3289 // https://github.com/ziglang/zig/issues/17619
3290 exe.pie = true;
32913237
32923238 const run = addRunArtifact(exe);
32933239 run.expectStdOutEqual(exp_stdout);
......@@ -3300,8 +3246,6 @@ fn testTlsLd(b: *Build, opts: Options) *Step {
33003246 exe.addObject(a_o);
33013247 exe.linkLibC();
33023248 // exe.link_relax = false; // TODO
3303 // https://github.com/ziglang/zig/issues/17619
3304 exe.pie = true;
33053249
33063250 const run = addRunArtifact(exe);
33073251 run.expectStdOutEqual(exp_stdout);
......@@ -3335,8 +3279,6 @@ fn testTlsLdDso(b: *Build, opts: Options) *Step {
33353279 , &.{});
33363280 exe.linkLibrary(dso);
33373281 exe.linkLibC();
3338 // https://github.com/ziglang/zig/issues/17619
3339 exe.pie = true;
33403282
33413283 const run = addRunArtifact(exe);
33423284 run.expectStdOutEqual("1 2\n");
......@@ -3380,8 +3322,6 @@ fn testTlsLdNoPlt(b: *Build, opts: Options) *Step {
33803322 exe.addObject(a_o);
33813323 exe.addObject(b_o);
33823324 exe.linkLibC();
3383 // https://github.com/ziglang/zig/issues/17619
3384 exe.pie = true;
33853325
33863326 const run = addRunArtifact(exe);
33873327 run.expectStdOutEqual("3 5 3 5\n");
......@@ -3394,8 +3334,6 @@ fn testTlsLdNoPlt(b: *Build, opts: Options) *Step {
33943334 exe.addObject(b_o);
33953335 exe.linkLibC();
33963336 // exe.link_relax = false; // TODO
3397 // https://github.com/ziglang/zig/issues/17619
3398 exe.pie = true;
33993337
34003338 const run = addRunArtifact(exe);
34013339 run.expectStdOutEqual("3 5 3 5\n");
......@@ -3481,8 +3419,6 @@ fn testTlsOffsetAlignment(b: *Build, opts: Options) *Step {
34813419 exe.addRPath(dso.getEmittedBinDirectory());
34823420 exe.linkLibC();
34833421 exe.root_module.pic = true;
3484 // https://github.com/ziglang/zig/issues/17619
3485 exe.pie = true;
34863422
34873423 const run = addRunArtifact(exe);
34883424 run.expectExitCode(0);
......@@ -3519,8 +3455,6 @@ fn testTlsPic(b: *Build, opts: Options) *Step {
35193455 , &.{});
35203456 exe.addObject(obj);
35213457 exe.linkLibC();
3522 // https://github.com/ziglang/zig/issues/17619
3523 exe.pie = true;
35243458
35253459 const run = addRunArtifact(exe);
35263460 run.expectStdOutEqual("3 5 3 5\n");
......@@ -3568,8 +3502,6 @@ fn testTlsSmallAlignment(b: *Build, opts: Options) *Step {
35683502 exe.addObject(b_o);
35693503 exe.addObject(c_o);
35703504 exe.linkLibC();
3571 // https://github.com/ziglang/zig/issues/17619
3572 exe.pie = true;
35733505
35743506 const run = addRunArtifact(exe);
35753507 run.expectStdOutEqual("42\n");
......@@ -3585,8 +3517,6 @@ fn testTlsSmallAlignment(b: *Build, opts: Options) *Step {
35853517 exe.addObject(c_o);
35863518 exe.linkLibrary(dso);
35873519 exe.linkLibC();
3588 // https://github.com/ziglang/zig/issues/17619
3589 exe.pie = true;
35903520
35913521 const run = addRunArtifact(exe);
35923522 run.expectStdOutEqual("42\n");
......@@ -3737,8 +3667,6 @@ fn testWeakExports(b: *Build, opts: Options) *Step {
37373667 const exe = addExecutable(b, opts, .{ .name = "main" });
37383668 exe.addObject(obj);
37393669 exe.linkLibC();
3740 // https://github.com/ziglang/zig/issues/17619
3741 exe.pie = true;
37423670
37433671 const check = exe.checkObject();
37443672 check.checkInDynamicSymtab();
......@@ -3771,8 +3699,6 @@ fn testWeakUndefsDso(b: *Build, opts: Options) *Step {
37713699 , &.{});
37723700 exe.linkLibrary(dso);
37733701 exe.linkLibC();
3774 // https://github.com/ziglang/zig/issues/17619
3775 exe.pie = true;
37763702
37773703 const run = addRunArtifact(exe);
37783704 run.expectStdOutEqual("bar=-1\n");
......@@ -3789,8 +3715,6 @@ fn testWeakUndefsDso(b: *Build, opts: Options) *Step {
37893715 , &.{});
37903716 exe.linkLibrary(dso);
37913717 exe.linkLibC();
3792 // https://github.com/ziglang/zig/issues/17619
3793 exe.pie = true;
37943718
37953719 const run = addRunArtifact(exe);
37963720 run.expectStdOutEqual("bar=5\n");
......@@ -3905,8 +3829,6 @@ fn testZText(b: *Build, opts: Options) *Step {
39053829 , &.{});
39063830 exe.linkLibrary(dso);
39073831 exe.linkLibC();
3908 // https://github.com/ziglang/zig/issues/17619
3909 exe.pie = true;
39103832
39113833 const run = addRunArtifact(exe);
39123834 run.expectStdOutEqual("3\n");