gnustep / libobjc2

Objective-C runtime library intended for use with Clang.
http://www.gnustep.org/
MIT License
426 stars 116 forks source link

AArch64 objc_msgSend: Fix argument corruption due to invalid stack pointer offset #266

Closed hmelder closed 6 months ago

hmelder commented 6 months ago

Fixes #265

We can run the tests with -Xclang -fobjc-dispatch-method=non-legacy, but we would need to check for fast-path support in the CMake configuration first.

triplef commented 6 months ago

What does using -fobjc-runtime=gnustep-2.2 instead of 2.0 do in Clang? Is that something that we should update in other projects using the runtime as well?

davidchisnall commented 6 months ago

What does using -fobjc-runtime=gnustep-2.2 instead of 2.0 do in Clang? Is that something that we should update in other projects using the runtime as well?

In the released versions of clang, nothing. In the next release, it will enable the fast-path dispatch for RV64. The recent clang fix also enabled it for other architectures in the correct library versions.