Index | Thread | Search

From:
"Sebastian Reitenbach" <sebastia@l00-bugdead-prods.de>
Subject:
Re: missing endbr64
To:
"Mark Kettenis" <mark.kettenis@xs4all.nl>
Cc:
"Theo Buehler" <tb@theobuehler.org>, ports@openbsd.org
Date:
Sun, 25 Feb 2024 22:13:44 +0100

Download raw body.

Thread
On Sunday, February 25, 2024 16:44 CET, Mark Kettenis <mark.kettenis@xs4all.nl> wrote:

> > x11/gnustep/libobjc2.log
> > ld: warning: __objc_block_trampoline_sret: missing endbr64
> > ld: warning: __objc_block_trampoline: missing endbr64
> > ld: warning: objc_msgSend: missing endbr64
> > ld: warning: objc_msgSend_fpret: missing endbr64
> > ld: warning: objc_msgSend_stret: missing endbr64
> 
> I guess this is very similay to devel/objfw.  Just add endbr64 to
> those functions like we did there.  No aarch64 support here by the
> looks of it.

Above version of libobjc2 is old, but due to build errors, and runtime errors, I was 
unable to upgrade. However, a new version was released just a few days ago, and that one even builds
and doesn't show runtime errors so far.
I updated one test box, to get these new ld warnings, there are only these left on amd64:

ld: warning: objc_msgSend: missing endbr64
ld: warning: objc_msgSend_fpret: missing endbr64
ld: warning: objc_msgSend_stret: missing endbr64

Which are all the platforms, that need such fix? I see objc_msgSend_fpret for aarch64, arm, 
amd64, i386, mips and riscv64.

Attached patch to update to the new 2.2 release, without any fixes for the missing endbr64.

Sebastian