The same dynamic-stack-buffer-overflow issues are reported from
riscv64 asan runtime. So, port the commit
bdea00c1c77d to riscv also.
Ref: https://github.com/libffi/libffi/issues/255
Ref: https://git.tizen.org/cgit/platform/upstream/libffi/commit/?id=
bdea00c1c77d
Ref: https://git.tizen.org/cgit/platform/upstream/libffi/commit/?id=
77df4e341d83
Change-Id: Ib957b2369e6a287a3903d82f6589c26dbecf02ab
Signed-off-by: Seung-Woo Kim <sw0312.kim@samsung.com>
void (*fn) (void), void *closure) FFI_HIDDEN;
static void
+#if defined(__SANITIZE_ADDRESS__) || defined(__SANITIZE_HWADDRESS__)
+__attribute__((__noinline__,__no_sanitize_address__,__no_sanitize_hwaddress__))
+#endif
ffi_call_int (ffi_cif *cif, void (*fn) (void), void *rvalue, void **avalue,
void *closure)
{