bootstrap_pie.c 479 B

1234567891011121314151617
  1. /* -*- mode:c; c-file-style:"k&r"; c-basic-offset: 4; tab-width:4; indent-tabs-mode:nil; mode:auto-fill; fill-column:78; -*- */
  2. /* vim: set ts=4 sw=4 et tw=78 fo=cqt wm=0: */
  3. #include <stdio.h>
  4. static void * ptr = NULL;
  5. int main(int argc, const char ** argv, const char ** envp)
  6. {
  7. printf("User program started\n");
  8. printf("Local Address in Executable: %p\n", &ptr);
  9. for (int i = 0 ; i < argc ; i++)
  10. printf("argv[%d] = %s\n", i, argv[i]);
  11. return 0;
  12. }