gcc - Android command-line executable: Segmentation fault -
i try compile do-nothing program , segmentation fault.
exe1.c:
int main() { return 12; }
android.mk:
local_path := $(call my-dir) include $(clear_vars) local_module := exe1 local_src_files := exe1.c #local_cflags += -save-temps #local_ldlibs := -llog include $(build_executable)
and get:
root@android:/ # exe1 [1] + stopped (signal) exe1 root@android:/ # [1] + segmentation fault exe1 root@android:/ #
(the console output evidently bit buggy, 2nd line not shown after executed command.)
how make work? (i need @ least hello-word functionality.)
update:
root@android:/ # strace exe1 execve("/system/bin/exe1", ["exe1"], [/* 22 vars */]) = 0
(udpate2: oops! looks strace not work @ all!)
Comments
Post a Comment