From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 48) id BA2EF3858D20; Fri, 11 Nov 2022 15:47:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BA2EF3858D20 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1668181666; bh=RQWjybKwXNbB3DoiCc8a6mqmYM+rH4nxDUvf/NP9Tos=; h=From:To:Subject:Date:From; b=iVUjjNGsUNa0Y86+rY8jwlp38BmepTr1AGmxCXKZB6inu4sZxpVwfz8EBNhRcmSd1 4pomcK15tB0WCW7fA1pX9yD92O0Ww7qJOwRTA40VGYYR9MnIpqGYCR0BIgyx0ui3PL O0/vZrIvxrI8XsGgQo3yKsUtzcoyfb0XiU4WpNB4= From: "fweimer at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug dynamic-link/29776] New: elf/tst-tlsopt-powerpc fails when compiled with -mcpu=power10 Date: Fri, 11 Nov 2022 15:47:46 +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: fweimer at redhat dot com X-Bugzilla-Status: NEW 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 cc target_milestone cf_gcctarget 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 List-Id: https://sourceware.org/bugzilla/show_bug.cgi?id=3D29776 Bug ID: 29776 Summary: elf/tst-tlsopt-powerpc fails when compiled with -mcpu=3Dpower10 Product: glibc Version: unspecified Status: NEW Severity: normal Priority: P2 Component: dynamic-link Assignee: unassigned at sourceware dot org Reporter: fweimer at redhat dot com CC: amodra at gmail dot com, rajis at linux dot ibm.com Target Milestone: --- Target: powerpc64le-linux-gnu tls_get_addr_opt_test in sysdeps/powerpc/mod-tlsopt-powerpc.c contains: #ifdef __powerpc64__ register unsigned long thread_pointer __asm__ ("r13"); asm ("addi %0,2,foo@got@tlsgd" : "=3Dr" (tls_arg)); #else If I'm not mistaken, this assumes that r2 is the TOC register. However, when building in PCREL mode (e.g., with CC=3D"gcc -mcpu=3Dpower10"), there is no= TOC register for this function. In fact, r2 is zero, and we get a crash for the tls_arg->ti_module !=3D 0 check. --=20 You are receiving this mail because: You are on the CC list for the bug.=