maintainer-approval requested: [Bug 263845] graphics/libglvnd: Library compiled in ARM mode, but executes in Thumb mode, crashing programs on FreeBSD 13 armv7 with SIGILL : [Attachment 234353] graphics/libglvnd: fix on armv7

[email protected]
Newsgroups gmane.os.freebsd.devel.x11
Message-ID <[email protected]/bugzilla/>
Robert Clausecker <[email protected]> has asked freebsd-x11 (Nobody) <[email protected]>
for maintainer-approval:
Bug 263845: graphics/libglvnd: Library compiled in ARM mode, but executes in
Thumb mode, crashing programs on FreeBSD 13 armv7 with SIGILL
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263845

Attachment 234353: graphics/libglvnd: fix on armv7
https://bugs.freebsd.org/bugzilla/attachment.cgi?id=234353&action=edit



--- Comment #4 from Robert Clausecker <[email protected]> ---
Created attachment 234353
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=234353&action=edit
graphics/libglvnd: fix on 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.

Add a patch to fix the behaviour and bump PORTREVISION so consumers
get the updated library.

Tested with Poudriere on armv7 FreeBSD 13.
Please MFH if possible.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.