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

This commit is contained in:
Jakub Konka 2023-01-21 19:14:44 +01:00
parent 6fd1d7b372
commit 241cabdf3d

View File

@ -1,4 +1,5 @@
const std = @import("std");
const builtin = @import("builtin");
const Builder = std.build.Builder;
const LibExeObjectStep = std.build.LibExeObjStep;
@ -26,7 +27,14 @@ fn testUnwindInfo(
check.checkStart("segname __TEXT");
check.checkNext("sectname __gcc_except_tab");
check.checkNext("sectname __unwind_info");
check.checkNext("sectname __eh_frame");
switch (builtin.cpu.arch) {
.aarch64 => {
check.checkNext("sectname __eh_frame");
},
.x86_64 => {}, // We do not expect `__eh_frame` section on x86_64 in this case
else => unreachable,
}
check.checkInSymtab();
check.checkNext("{*} (__TEXT,__text) external ___gxx_personality_v0");