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