getpid.so having a modified getpid function that prints a message:gcc -Wall -fPIC -shared -o getpid.so getpid.c and gcc testpid -o testpid.cLD_PRELOAD is that the shared library must be compiled with position-independent code (PIC). Make sure you compiled getpid.so with the -fPIC flag. Also, check that getpid.so is in the current directory when you run the LD_PRELOAD command. Try running ldd getpid.so to check if there are any missing dependencies.Join the Discord to ask follow-up questions and connect with the community
EdgeBench is a remote platform that lets developers build, test, and evaluate embedded applications on real hardware through a browser.
3,029 Members
Join