interp.c
author Mathieu Lacage <mathieu.lacage@alcmeon.com>
Sat, 23 Feb 2013 20:59:51 +0100
changeset 656 e4817d48962f
parent 125 11d7bfeba99c
permissions -rw-r--r--
basic test for tls
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
125
11d7bfeba99c rework bootstrapping/initialization
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     1
// We have to set the interpreter name with this hack
11d7bfeba99c rework bootstrapping/initialization
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     2
// because the linker will ignore --dynamic-linker=ldso
11d7bfeba99c rework bootstrapping/initialization
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     3
// when building a shared library and will thus
11d7bfeba99c rework bootstrapping/initialization
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     4
// refuse to output a PT_INTERP and PT_PHDR entry
11d7bfeba99c rework bootstrapping/initialization
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     5
// in the program header table.
11d7bfeba99c rework bootstrapping/initialization
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     6
const char __invoke_dynamic_linker__[] __attribute__ ((section (".interp"))) = "ldso";
11d7bfeba99c rework bootstrapping/initialization
Mathieu Lacage <mathieu.lacage@sophia.inria.fr>
parents:
diff changeset
     7