diff options
| author | Jakub Konka <kubkon@jakubkonka.com> | 2023-10-12 17:42:58 +0200 |
|---|---|---|
| committer | Jakub Konka <kubkon@jakubkonka.com> | 2023-10-16 19:33:05 +0200 |
| commit | 716a45a209d4f42ddc9937dc552c6f6d89c8b808 (patch) | |
| tree | 7cfd7deef68940ca1685779fe5a5c4aef57705ff /test | |
| parent | 5ff12003eeb88ae0d02318f6147cccd09a3149ea (diff) | |
| download | zig-716a45a209d4f42ddc9937dc552c6f6d89c8b808.tar.gz zig-716a45a209d4f42ddc9937dc552c6f6d89c8b808.zip | |
elf: use findFreeSpace mechanics to allocate object-extracted segments
Diffstat (limited to 'test')
| -rw-r--r-- | test/link/elf.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/link/elf.zig b/test/link/elf.zig index 79249a11a1..3ff1028393 100644 --- a/test/link/elf.zig +++ b/test/link/elf.zig @@ -1374,10 +1374,6 @@ fn testLargeAlignmentExe(b: *Build, opts: Options) *Step { exe.link_function_sections = true; exe.linkLibC(); - const run = addRunArtifact(exe); - run.expectStdOutEqual("Hello world"); - test_step.dependOn(&run.step); - const check = exe.checkObject(); check.checkInSymtab(); check.checkExtract("{addr1} {size1} {shndx1} FUNC LOCAL DEFAULT hello"); @@ -1387,6 +1383,10 @@ fn testLargeAlignmentExe(b: *Build, opts: Options) *Step { check.checkComputeCompare("addr2 16 %", .{ .op = .eq, .value = .{ .literal = 0 } }); test_step.dependOn(&check.step); + const run = addRunArtifact(exe); + run.expectStdOutEqual("Hello world"); + test_step.dependOn(&run.step); + return test_step; } |
