summaryrefslogtreecommitdiff
path: root/bridges
diff options
context:
space:
mode:
authorjan Iversen <jani@libreoffice.org>2018-03-11 19:05:09 +0100
committerjan Iversen <jani@libreoffice.org>2018-03-11 19:09:16 +0100
commit814bd40070db654d80a16d9f813610cae3b12dd6 (patch)
tree75da2c2a9bd4e282e30df58064566a683c53c624 /bridges
parenta414d362350df8eacd82104545a6aaf4ce102011 (diff)
iOS, calling cpp_vtable_call does not corrupt stack
Changing bl -> b (jump long to jump) allowed cpp_vtable_call to work without corrumping the stack. However return still corrumpts the stack. Change-Id: I3437a73139b65af13dcf6fa0c959bb1c847564b9
Diffstat (limited to 'bridges')
-rw-r--r--bridges/source/cpp_uno/gcc3_ios/cpp2uno.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/bridges/source/cpp_uno/gcc3_ios/cpp2uno.cxx b/bridges/source/cpp_uno/gcc3_ios/cpp2uno.cxx
index 1250beedbcda..98d859c69cde 100644
--- a/bridges/source/cpp_uno/gcc3_ios/cpp2uno.cxx
+++ b/bridges/source/cpp_uno/gcc3_ios/cpp2uno.cxx
@@ -56,11 +56,11 @@ extern "C" void privateSnippetExecutor()
// Second argument: The pointer to all the above
" mov x1, sp\n"
- " bl _cpp_vtable_call\n"
+ " b _cpp_vtable_call\n"
" ldp x8, lr, [sp, #0]\n"
" add sp, sp, #144\n"
- " ret lr\n"
+// " ret lr\n"
);
}