diff options
author | Dale Rahn <drahn@cvs.openbsd.org> | 2004-02-10 16:59:09 +0000 |
---|---|---|
committer | Dale Rahn <drahn@cvs.openbsd.org> | 2004-02-10 16:59:09 +0000 |
commit | c85f727214ed2c2d4bdf32e3abe39c62e9dcb6a5 (patch) | |
tree | 5d1b4f807a16d90a111f019805e22fbee70c6f38 /libexec/ld.so | |
parent | c6026ffae6db9e07c5fc7170d4ef9115420febe4 (diff) |
Make this work. will figure out what this should be later.
Diffstat (limited to 'libexec/ld.so')
-rw-r--r-- | libexec/ld.so/amd64/ldasm.S | 9 | ||||
-rw-r--r-- | libexec/ld.so/x86_64/ldasm.S | 9 |
2 files changed, 10 insertions, 8 deletions
diff --git a/libexec/ld.so/amd64/ldasm.S b/libexec/ld.so/amd64/ldasm.S index 11b30c866b4..515529439a2 100644 --- a/libexec/ld.so/amd64/ldasm.S +++ b/libexec/ld.so/amd64/ldasm.S @@ -1,4 +1,4 @@ -/* $OpenBSD: ldasm.S,v 1.1 2004/02/10 14:18:14 drahn Exp $ */ +/* $OpenBSD: ldasm.S,v 1.2 2004/02/10 16:59:08 drahn Exp $ */ /* * Copyright (c) 2002,2004 Dale Rahn @@ -58,9 +58,10 @@ _dl_start: addq $DL_DATA_SIZE,%rsp # return dl_data - popq %rbx # %rbx = ps_strings - XXXDSR - popq %rdx # %rdx = cleanup - XXXDSR - popq %rcx # %rcx = obj_main - XXXDSR +# popq %rbx # %rbx = ps_strings - XXXDSR +# popq %rdx # %rdx = cleanup - XXXDSR +# popq %rcx # %rcx = obj_main - XXXDSR + movq %r12, %rsp jmp *%rax .section ".text" diff --git a/libexec/ld.so/x86_64/ldasm.S b/libexec/ld.so/x86_64/ldasm.S index 11b30c866b4..515529439a2 100644 --- a/libexec/ld.so/x86_64/ldasm.S +++ b/libexec/ld.so/x86_64/ldasm.S @@ -1,4 +1,4 @@ -/* $OpenBSD: ldasm.S,v 1.1 2004/02/10 14:18:14 drahn Exp $ */ +/* $OpenBSD: ldasm.S,v 1.2 2004/02/10 16:59:08 drahn Exp $ */ /* * Copyright (c) 2002,2004 Dale Rahn @@ -58,9 +58,10 @@ _dl_start: addq $DL_DATA_SIZE,%rsp # return dl_data - popq %rbx # %rbx = ps_strings - XXXDSR - popq %rdx # %rdx = cleanup - XXXDSR - popq %rcx # %rcx = obj_main - XXXDSR +# popq %rbx # %rbx = ps_strings - XXXDSR +# popq %rdx # %rdx = cleanup - XXXDSR +# popq %rcx # %rcx = obj_main - XXXDSR + movq %r12, %rsp jmp *%rax .section ".text" |