From e36edaee5568abce2cdfaba1f5c229a882cbd40f Mon Sep 17 00:00:00 2001 From: William Wilgus Date: Sat, 17 Nov 2018 09:00:42 -0500 Subject: Lua fix crash on arm devices This is a seemingly random bug that only affects (as far as I can tell) arm devices it isn't actually random as code changes cause it to appear/disappear based on alignment Change-Id: I4cbc4370677959319f8589fe454e854c45623468 --- apps/plugins/lua/rocklib.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'apps/plugins') diff --git a/apps/plugins/lua/rocklib.h b/apps/plugins/lua/rocklib.h index c8d1366ba6..5d3abe30ec 100644 --- a/apps/plugins/lua/rocklib.h +++ b/apps/plugins/lua/rocklib.h @@ -45,7 +45,7 @@ struct lua_str_reg { char const* value; }; -LUALIB_API int (luaopen_rock) (lua_State *L); +LUALIB_API int (luaopen_rock) (lua_State *L) __attribute__((aligned(0x8))); int get_current_path(lua_State *L, int level); int filetol(int fd, long *num); -- cgit v1.2.3