| ... | ... | @@ -1,4 +1,5 @@ |
| 1 | 1 | const std = @import("std"); |
| 2 | const builtin = @import("builtin"); |
| 2 | 3 | const Builder = std.build.Builder; |
| 3 | 4 | const LibExeObjectStep = std.build.LibExeObjStep; |
| 4 | 5 | |
| ... | ... | @@ -26,7 +27,14 @@ fn testUnwindInfo( |
| 26 | 27 | check.checkStart("segname __TEXT"); |
| 27 | 28 | check.checkNext("sectname __gcc_except_tab"); |
| 28 | 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 | } |
| 30 | 38 | |
| 31 | 39 | check.checkInSymtab(); |
| 32 | 40 | check.checkNext("{*} (__TEXT,__text) external ___gxx_personality_v0"); |