| ... | ... | @@ -141,12 +141,14 @@ pub fn build(b: *std.Build) void { |
| 141 | 141 | check.checkInDynamicSymtab(); |
| 142 | 142 | check.checkExact("0 0 UND FUNC GLOBAL DEFAULT powf"); |
| 143 | 143 | |
| 144 | | // An atexit local symbol is defined, and depends on undefined dynamic |
| 145 | | // __cxa_atexit. |
| 146 | | check.checkInSymtab(); |
| 147 | | check.checkContains("FUNC LOCAL HIDDEN atexit"); |
| 148 | | check.checkInDynamicSymtab(); |
| 149 | | check.checkExact("0 0 UND FUNC GLOBAL DEFAULT __cxa_atexit"); |
| 144 | if (target.result.cpu.arch != .s390x) { |
| 145 | // An atexit local symbol is defined, and depends on undefined dynamic |
| 146 | // __cxa_atexit. |
| 147 | check.checkInSymtab(); |
| 148 | check.checkContains("FUNC LOCAL HIDDEN atexit"); |
| 149 | check.checkInDynamicSymtab(); |
| 150 | check.checkExact("0 0 UND FUNC GLOBAL DEFAULT __cxa_atexit"); |
| 151 | } |
| 150 | 152 | |
| 151 | 153 | test_step.dependOn(&check.step); |
| 152 | 154 | } |
| ... | ... | @@ -250,12 +252,14 @@ pub fn build(b: *std.Build) void { |
| 250 | 252 | check.checkInDynamicSymtab(); |
| 251 | 253 | check.checkExact("0 0 UND FUNC GLOBAL DEFAULT exit"); |
| 252 | 254 | |
| 253 | | // An atexit local symbol is defined, and depends on undefined dynamic |
| 254 | | // __cxa_atexit. |
| 255 | | check.checkInSymtab(); |
| 256 | | check.checkContains("FUNC LOCAL HIDDEN atexit"); |
| 257 | | check.checkInDynamicSymtab(); |
| 258 | | check.checkExact("0 0 UND FUNC GLOBAL DEFAULT __cxa_atexit"); |
| 255 | if (target.result.cpu.arch != .s390x) { |
| 256 | // An atexit local symbol is defined, and depends on undefined dynamic |
| 257 | // __cxa_atexit. |
| 258 | check.checkInSymtab(); |
| 259 | check.checkContains("FUNC LOCAL HIDDEN atexit"); |
| 260 | check.checkInDynamicSymtab(); |
| 261 | check.checkExact("0 0 UND FUNC GLOBAL DEFAULT __cxa_atexit"); |
| 262 | } |
| 259 | 263 | |
| 260 | 264 | test_step.dependOn(&check.step); |
| 261 | 265 | } |