Skip to content

Commit

Permalink
more helpful message when testTlsOffsetAlignment fails
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewrk committed Oct 23, 2024
1 parent 504ad56 commit 2530d63
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion test/link/elf.zig
Original file line number Diff line number Diff line change
Expand Up @@ -3757,11 +3757,15 @@ fn testTlsOffsetAlignment(b: *Build, opts: Options) *Step {
\\#include <pthread.h>
\\#include <dlfcn.h>
\\#include <assert.h>
\\#include <stdio.h>
\\void *(*verify)(void *);
\\
\\int main() {
\\ void *handle = dlopen("liba.so", RTLD_NOW);
\\ assert(handle);
\\ if (!handle) {
\\ fprintf(stderr, "dlopen failed: %s\n", dlerror());
\\ return 1;
\\ }
\\ *(void**)(&verify) = dlsym(handle, "verify");
\\ assert(verify);
\\
Expand Down

0 comments on commit 2530d63

Please sign in to comment.