Training courses

Kernel and Embedded Linux

Bootlin training courses

Embedded Linux, kernel,
Yocto Project, Buildroot, real-time,
graphics, boot time, debugging...

Bootlin logo

Elixir Cross Referencer

#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <string.h>
#include <limits.h>

int main (int argc, char ** argv)
{
  char prog[PATH_MAX];
  int len;

  strcpy (prog, argv[0]);
  len = strlen (prog);
  /* Replace "bkpt-multi-exec" with "crashme".  */
  memcpy (prog + len - 15, "crashme", 7);
  prog[len - 8] = 0;

  printf ("foll-exec is about to execl(crashme)...\n");

  execl (prog,
         prog,
         (char *)0);
}