author | Hajime Tazaki <tazaki@nict.go.jp> |
Wed, 13 Feb 2013 22:37:34 +0900 | |
changeset 651 | 9d7e2cd9633b |
parent 125 | 11d7bfeba99c |
permissions | -rw-r--r-- |
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 |