[Bug 263845] graphics/libglvnd: Library compiled in ARM mode, but executes in Thumb mode, crashing programs on FreeBSD 13 armv7 with SIGILL

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 03 Jun 2022 13:42:57 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263845

--- Comment #8 from commit-hook@FreeBSD.org ---
A commit in branch main references this bug:

URL:
https://cgit.FreeBSD.org/ports/commit/?id=239ba7a240fd6fd611ac6a72986de6b26ab5da64

commit 239ba7a240fd6fd611ac6a72986de6b26ab5da64
Author:     Robert Clausecker <fuz@fuz.su>
AuthorDate: 2022-06-03 13:18:05 +0000
Commit:     Emmanuel Vadot <manu@FreeBSD.org>
CommitDate: 2022-06-03 13:41:40 +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:      
https://gitlab.freedesktop.org/glvnd/libglvnd/-/merge_requests/267
    See also:       https://gitlab.freedesktop.org/glvnd/libglvnd/-/issues/232
    PR:             263845

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

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