bootstrap_pie.c 306 B

1234567891011121314
  1. #include <stdio.h>
  2. static void* ptr = NULL;
  3. int main(int argc, const char** argv, const char** envp) {
  4. printf("User program started\n");
  5. printf("Local Address in Executable: %p\n", &ptr);
  6. for (int i = 0; i < argc; i++) {
  7. printf("argv[%d] = %s\n", i, argv[i]);
  8. }
  9. return 0;
  10. }