From 51e2d8310222ddd4d4e895f55c627100d863aa95 Mon Sep 17 00:00:00 2001 From: Rich Felker Date: Sat, 18 Jun 2011 19:48:42 -0400 Subject: experimental dynamic linker! some notes: - library search path is hard coded - x86_64 code is untested and may not work - dlopen/dlsym is not yet implemented - relocations in read-only memory won't work --- src/ldso/x86_64/start.s | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 src/ldso/x86_64/start.s (limited to 'src/ldso/x86_64') diff --git a/src/ldso/x86_64/start.s b/src/ldso/x86_64/start.s new file mode 100644 index 00000000..efb27454 --- /dev/null +++ b/src/ldso/x86_64/start.s @@ -0,0 +1,8 @@ +.text +.global _start +_start: + mov (%rsp),%rdi + lea 8(%rsp),%rsi + lea _GLOBAL_OFFSET_TABLE_(%rip),%rdx + call __dynlink + jmp *%rax -- cgit v1.2.1