I am trying to enable debugging for wasm in chrome. So, I compiled and linked my code with -g instead of -O3 which I was doing earlier. But I am facing this strange error below at runtime.

I also tried adding gettimeofday inside DEFAULT_LIBRARY_FUNCS_TO_INCLUDE and _gettimeofday in EXPORTED_FUNCTIONS but the issue still persists. It seems that this function is there in the generated js but its signature (sig) isn't.