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
This commit is contained in:
William Wilgus 2018-11-17 09:00:42 -05:00
parent 03718bdb76
commit e36edaee55

View file

@ -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);