https://sourceware.org/bugzilla/show_bug.cgi?id=35009

            Bug ID: 35009
           Summary: RISC-V: TLSDESC relaxation breaks Mesa libgallium
           Product: binutils
           Version: 2.48 (HEAD)
            Status: NEW
          Severity: normal
          Priority: P2
         Component: ld
          Assignee: unassigned at sourceware dot org
          Reporter: aurelien at aurel32 dot net
  Target Milestone: ---

Created attachment 17288
  --> https://sourceware.org/bugzilla/attachment.cgi?id=17288&action=edit
log

When built using the current binutils HEAD, Mesa libgallium crashes at runtime.
I haven't been able to identify exactly what is broken, however I have been
able to identify the binutils commit which introduces the issue:

commit 2c4ccb8103d73917d769cf6c35fa8b71424f20ca
Author: Tatsuyuki Ishi <[email protected]>
Date:   Wed Feb 21 02:55:56 2024 +0900

    RISC-V: Introduce TLSDESC relaxation.

There are more details in this Debian bug report:
https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1153522

I have also attached the qt6-pim test log in case it helps. The good and broken
binaries are available in this tarball:
https://temp.aurel32.net/mesa-libgallium-tlsdesc.tar.gz

I have found that -mno-relax doesn't help with the issue, but
-mtls-dialect=trad is a good workaround.

Do not hesitate to ask for extra testing in case you have some ideas about the
issue.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to