Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support TLS Descriptors ABI #258

Open
4 tasks
marxin opened this issue Dec 30, 2024 · 0 comments
Open
4 tasks

Support TLS Descriptors ABI #258

marxin opened this issue Dec 30, 2024 · 0 comments
Assignees

Comments

@marxin
Copy link
Collaborator

marxin commented Dec 30, 2024

The ABI is the default one on AArch64:

One can trigger an unresolved resolution on x86_64 with:

❯ cat tls1.c
#include <stdio.h>

static _Thread_local int x1 = 1;
static _Thread_local int x2;

int main() {
  x2 = 2;

  printf("%d %d\n", x1, x2);
  return 0;
}
$ gcc tls1.c -mtls-dialect=gnu2 -fPIC -B ~/Programming/wild
...
Error: Failed to load symbol `main` (73 local=6) in file #1024 (4/0) (a-tls1.o) (ADDRESS | CAN_BYPASS_GOT) from a-tls1.o (1024 (4/0))

Caused by:
    Unsupported relocation type R_X86_64_GOTPC32_TLSDESC

Steps

@marxin marxin self-assigned this Jan 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant