Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 05 Jun 2022 16:11:25 +0000
From:      bugzilla-noreply@freebsd.org
To:        x11@FreeBSD.org
Subject:   [Bug 263845] graphics/libglvnd: Library compiled in ARM mode, but executes in Thumb mode, crashing programs on FreeBSD 13 armv7 with SIGILL
Message-ID:  <bug-263845-7141-RsH8mGYNoG@https.bugs.freebsd.org/bugzilla/>
In-Reply-To: <bug-263845-7141@https.bugs.freebsd.org/bugzilla/>
References:  <bug-263845-7141@https.bugs.freebsd.org/bugzilla/>

next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D263845

--- Comment #10 from commit-hook@FreeBSD.org ---
A commit in branch 2022Q2 references this bug:

URL:
https://cgit.FreeBSD.org/ports/commit/?id=3Def2d763b3855c82449ac171a538d90e=
70cbd7ba1

commit ef2d763b3855c82449ac171a538d90e70cbd7ba1
Author:     Robert Clausecker <fuz@fuz.su>
AuthorDate: 2022-06-03 13:18:05 +0000
Commit:     Li-Wen Hsu <lwhsu@FreeBSD.org>
CommitDate: 2022-06-05 16:09:55 +0000

    graphics/libglvnd: fix on armv6/armv7

    The .thumb_func directive does not switch to thumb mode in clang's
    integrated assembler.  This causes the code to be miscompiled in that
    it is generated as ARM code but the symbols are tagged as thumb.  The
    resulting library is unusable.  Every call into it crashes.

    Fix this issue by applying an upstream patch set to have the entry
    stubs be in ARM mode instead of Thumb mode.

    See also:=20=20=20=20=20=20
https://gitlab.freedesktop.org/glvnd/libglvnd/-/merge_requests/267
    See also:       https://gitlab.freedesktop.org/glvnd/libglvnd/-/issues/=
232
    PR:             263845

    (cherry picked from commit 239ba7a240fd6fd611ac6a72986de6b26ab5da64)

 graphics/libglvnd/Makefile | 7 ++++++-
 graphics/libglvnd/distinfo | 8 +++++++-
 2 files changed, 13 insertions(+), 2 deletions(-)

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-263845-7141-RsH8mGYNoG>