authorgravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2023-01-21 19:14:44+01:00
committergravatar for kubkon@jakubkonka.comJakub Konka <kubkon@jakubkonka.com> 2023-01-21 19:14:44+01:00
log241cabdf3df5568adf118f19fb0dda856c51ca27
tree7d4f3954b14e46726abcbcd96462c189c4289653
parent6fd1d7b37265f86d5926ed684e0301a6319497d7

link-tests: do not expect __eh_frame section on x86_64-macos


1 files changed, 9 insertions(+), 1 deletions(-)

test/link/macho/unwind_info/build.zig+9-1
...@@ -1,4 +1,5 @@...@@ -1,4 +1,5 @@
1const std = @import("std");1const std = @import("std");
2const builtin = @import("builtin");
2const Builder = std.build.Builder;3const Builder = std.build.Builder;
3const LibExeObjectStep = std.build.LibExeObjStep;4const LibExeObjectStep = std.build.LibExeObjStep;
45
...@@ -26,7 +27,14 @@ fn testUnwindInfo(...@@ -26,7 +27,14 @@ fn testUnwindInfo(
26 check.checkStart("segname __TEXT");27 check.checkStart("segname __TEXT");
27 check.checkNext("sectname __gcc_except_tab");28 check.checkNext("sectname __gcc_except_tab");
28 check.checkNext("sectname __unwind_info");29 check.checkNext("sectname __unwind_info");
29 check.checkNext("sectname __eh_frame");30
31 switch (builtin.cpu.arch) {
32 .aarch64 => {
33 check.checkNext("sectname __eh_frame");
34 },
35 .x86_64 => {}, // We do not expect `__eh_frame` section on x86_64 in this case
36 else => unreachable,
37 }
3038
31 check.checkInSymtab();39 check.checkInSymtab();
32 check.checkNext("{*} (__TEXT,__text) external ___gxx_personality_v0");40 check.checkNext("{*} (__TEXT,__text) external ___gxx_personality_v0");