Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/libexec/ld.elf_so/arch/x86_64 Add comment about the unusual ...
details: https://anonhg.NetBSD.org/src/rev/1cd53153810f
branches: trunk
changeset: 759252:1cd53153810f
user: joerg <joerg%NetBSD.org@localhost>
date: Fri Dec 03 22:48:25 2010 +0000
description:
Add comment about the unusual stack alignment in .rtld_bind_start.
diffstat:
libexec/ld.elf_so/arch/x86_64/rtld_start.S | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diffs (19 lines):
diff -r 29dd99bbec8f -r 1cd53153810f libexec/ld.elf_so/arch/x86_64/rtld_start.S
--- a/libexec/ld.elf_so/arch/x86_64/rtld_start.S Fri Dec 03 21:41:40 2010 +0000
+++ b/libexec/ld.elf_so/arch/x86_64/rtld_start.S Fri Dec 03 22:48:25 2010 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: rtld_start.S,v 1.6 2003/02/28 22:37:35 mycroft Exp $ */
+/* $NetBSD: rtld_start.S,v 1.7 2010/12/03 22:48:25 joerg Exp $ */
/*
* Copyright (c) 2001 Wasabi Systems, Inc.
@@ -67,6 +67,9 @@
.globl _rtld_bind_start
.type _rtld_bind_start,@function
_rtld_bind_start: # (obj, reloff)
+ # This function is called with a misaligned stack from the PLT
+ # due to the additional argument pushed.
+ # At this point %rsp % 16 == 8.
pushfq # save caller-saved registers
pushq %rax
pushq %rcx
Home |
Main Index |
Thread Index |
Old Index