about summary refs log tree commit diff
path: root/src/ldso/x86_64
diff options
context:
space:
mode:
authorRich Felker <dalias@aerifal.cx>2012-05-27 14:49:55 -0400
committerRich Felker <dalias@aerifal.cx>2012-05-27 14:49:55 -0400
commitb94608ca10051e7911250aaa53f1435b0512018c (patch)
treefdd14adf3025dbd0929551706f3ed516bee85515 /src/ldso/x86_64
parent054ba185999d29f6ae9a8e19549da95f783655b6 (diff)
downloadmusl-b94608ca10051e7911250aaa53f1435b0512018c.tar.gz
musl-b94608ca10051e7911250aaa53f1435b0512018c.tar.xz
musl-b94608ca10051e7911250aaa53f1435b0512018c.zip
cleanup dynamic linker start code cruft
two actual issues: one is that __dynlink no longer wants/needs a GOT
pointer argument, so the code to generate that argument can be
removed. the other issue was that in the i386 code, argc/argv were
being loaded into registers that would be call-clobbered, then copied
to preserved registers, rather than just being loaded into the proper
call-preserved registers to begin with.

this cleanup is in preparation for adding new dynamic linker
functionality (ability to explicitly invoke the dynamic linker to run
a program).
Diffstat (limited to 'src/ldso/x86_64')
-rw-r--r--src/ldso/x86_64/start.s1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/ldso/x86_64/start.s b/src/ldso/x86_64/start.s
index cb0a9e1f..65e238b7 100644
--- a/src/ldso/x86_64/start.s
+++ b/src/ldso/x86_64/start.s
@@ -3,7 +3,6 @@
 _start:
 	mov (%rsp),%rdi
 	lea 8(%rsp),%rsi
-	lea _GLOBAL_OFFSET_TABLE_(%rip),%rdx
 	call __dynlink
 	xor %edx,%edx
 	jmp *%rax