[Bug 263845] graphics/libglvnd: Library compiled in ARM mode, but executes in Thumb mode, crashing programs on FreeBSD 13 armv7 with SIGILL
- In reply to: bugzilla-noreply_a_freebsd.org: "[Bug 263845] graphics/libglvnd: crashes on armv7 with SIGILL"
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 05 Jun 2022 16:11:25 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263845 --- Comment #10 from commit-hook@FreeBSD.org --- A commit in branch 2022Q2 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=ef2d763b3855c82449ac171a538d90e70cbd7ba1 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: 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(-) -- You are receiving this mail because: You are the assignee for the bug. You are on the CC list for the bug.