From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id B831A3861865; Wed, 28 Jul 2021 21:00:44 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B831A3861865 From: "i at maskray dot me" 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: dynamic-link X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: i at maskray dot me X-Bugzilla-Status: UNCONFIRMED X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version bug_status bug_severity priority component assigned_to reporter target_milestone Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-BeenThere: glibc-bugs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-bugs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Jul 2021 21:00:45 -0000 https://sourceware.org/bugzilla/show_bug.cgi?id=3D28152 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 directi= ve % clang -c -x assembler =3D(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 featu= re) % clang -c -x assembler -fno-integrated-as =3D(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 c= an 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: Rep= lace .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=3D27220 (nested functions in elf/) is the main one.) --=20 You are receiving this mail because: You are on the CC list for the bug.=