public inbox for glibc-bugs@sourceware.org help / color / mirror / Atom feed
From: "i at maskray dot me" <sourceware-bugzilla@sourceware.org> To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/28152] New: elf: clang integrated assembler and ld.lld do not support .tls_common Date: Wed, 28 Jul 2021 21:00:44 +0000 [thread overview] Message-ID: <bug-28152-131@http.sourceware.org/bugzilla/> (raw) https://sourceware.org/bugzilla/show_bug.cgi?id=28152 Bug ID: 28152 Summary: elf: clang integrated assembler and ld.lld do not support .tls_common Product: glibc Version: unspecified Status: UNCONFIRMED Severity: normal Priority: P2 Component: dynamic-link Assignee: unassigned at sourceware dot org Reporter: i at maskray dot me Target Milestone: --- The integrated assembler does not support the obsoleted .tls_common directive % clang -c -x assembler =(printf '.tls_common x,4,4\n') /tmp/zsh5QvAWt:1:1: error: unknown directive .tls_common x,4,4 ^ ld.lld doesn't support it (there is no point supporting the obsoleted feature) % clang -c -x assembler -fno-integrated-as =(printf '.tls_common x,4,4\n') -o a.o && ld.lld a.o ld.lld: warning: cannot find entry symbol _start; defaulting to 0x201158 ld.lld: error: a.o has an STT_TLS symbol but doesn't have an SHF_TLS section elf/tls-macros.h COMMON_INT_DEF uses .tls_common and therefore some tests can be built/linked with clang or ld.lld Testing assembling and linking of .tls_common is binutils gas/ld's responsibility, not glibc's. https://sourceware.org/pipermail/libc-alpha/2021-July/129451.html (elf: Replace .tls_common with .tbss definition) can make the tests buildable with clang and ld.lld (There is a long way for clang to build glibc itself. https://sourceware.org/bugzilla/show_bug.cgi?id=27220 (nested functions in elf/) is the main one.) -- You are receiving this mail because: You are on the CC list for the bug.
next reply other threads:[~2021-07-28 21:00 UTC|newest] Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-07-28 21:00 i at maskray dot me [this message] 2021-07-28 21:02 ` [Bug dynamic-link/28152] " i at maskray dot me 2021-08-16 17:08 ` i at maskray dot me
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-28152-131@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=glibc-bugs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).