linux 修改 elf 文件的dynamic linker 和 rpath https://nixos.org/patchelf.html 下载地址 https://nixos.org/releases/patchelf/patchelf-0.9/patchelf-0.9.tar.gz https://nixos.org/releases/patchelf/patchelf-0.9/patchelf-0.9.tar.bz2 PatchELF PatchELF is a small utilit
我们将之前的代码增加下变量来具体看下 在代码中增加了全局变量以及静态变量,还有一个简单的函数. #include <stdio.h> int global_var=1; int global_init_var; void func1(int i){ printf("%d\n",i); } int main(void){ static int static_var=8; static int static_var2; int a=1; int b; func1(static_