[vm/ffi] Fix _ClobberAndCall linking on MacOS arm64

Bug: https://github.com/dart-lang/sdk/issues/46305

TEST=tests/ffi_2/vmspecific_function_callbacks_test.dart

Change-Id: I82af08c5123b9bf637b9dc6e1983dde3fa155291
Cq-Include-Trybots: luci.dart.try:vm-kernel-mac-release-arm64-try,vm-ffi-android-debug-arm64-try
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/202967
Reviewed-by: Tess Strickland <sstrickl@google.com>
Commit-Queue: Daco Harkes <dacoharkes@google.com>
This commit is contained in:
Daco Harkes 2021-06-11 11:21:36 +00:00 committed by commit-bot@chromium.org
parent 64e7cb9f5c
commit a9f08a75a2

View file

@ -1,7 +1,13 @@
.text
.global ClobberAndCall
#if defined(__linux__) || defined(__FreeBSD__) /* HOST_OS_LINUX */
.globl ClobberAndCall
.type ClobberAndCall, @function
ClobberAndCall:
#else /* HOST_OS_MACOS */
.globl _ClobberAndCall
_ClobberAndCall:
#endif
/* Save link register register and thread register. Keep stack aligned to 16 bytes. */
stp lr, x26, [sp, #-16]!