bootstrap_pie.c 303 B

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