Back to index

glibc  2.9
Functions
tst-execstack-mod.c File Reference
#include <stdbool.h>
#include <stdio.h>
#include <stdlib.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void callme (void(*callback)(void))
void tryme (void)

Function Documentation

void callme ( void(*)(void)  callback)

Definition at line 27 of file tst-execstack-mod.c.

{
  (*callback) ();
}

Here is the caller graph for this function:

void tryme ( void  )

Definition at line 13 of file tst-execstack-mod.c.

{
  bool ok = false;
  void callback (void) { ok = true; }

  callme (&callback);

  if (ok)
    printf ("DSO called ok (local %p, trampoline %p)\n", &ok, &callback);
  else
    abort ();
}

Here is the call graph for this function:

Here is the caller graph for this function: