diff --git a/doc/ext_ffi_api.html b/doc/ext_ffi_api.html
index 4289c190..8cf48dc3 100644
--- a/doc/ext_ffi_api.html
+++ b/doc/ext_ffi_api.html
@@ -468,6 +468,8 @@ otherwise. The following parameters are currently defined:
eabi | EABI variant of the standard ABI |
win | Windows variant of the standard ABI |
+
+gc64 | 64 bit GC references |
ffi.os
diff --git a/src/lib_ffi.c b/src/lib_ffi.c
index 6e601539..b2b2d37f 100644
--- a/src/lib_ffi.c
+++ b/src/lib_ffi.c
@@ -751,6 +751,9 @@ LJLIB_CF(ffi_abi) LJLIB_REC(.)
case H_(4ab624a8,4ab624a8): b = 1; break; /* win */
#endif
case H_(3af93066,1f001464): b = 1; break; /* le/be */
+#if LJ_GC64
+ case H_(9e89d2c9,13c83c92): b = 1; break; /* gc64 */
+#endif
default:
break;
}