例子 test1.c #include <stdio.h> int main(int argc, char **argv) { printf("hello world\n"); return 0; } $ strace ./test1.out execve("./test1.out", ["./test1.out"], 0x7ffd55864680 /* 62 vars */) = 0 brk(NULL) = 0x5628470b5000 arch_prctl(0x3001 /* ARCH_??? */, 0x7ffc7495aeb0) = -1 EINVAL (无效的参数) access("/etc/ld.so.preload", R_OK) = -1 ENOENT (没有那个文件或目录) openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3 fstat(3, {st_mode=S_IFREG|0644, st_size=83237,……
阅读全文