mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
* sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
(_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
This commit is contained in:
parent
10a803e0a2
commit
6a1bd2a100
@ -1,3 +1,8 @@
|
||||
2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
|
||||
|
||||
* sysdeps/x86_64/elf/start.S: Include <sysdep.h>.
|
||||
(_start): Add cfi_startproc, cfi_undefined for rip and cfi_endproc.
|
||||
|
||||
2012-03-16 Roland McGrath <roland@hack.frob.com>
|
||||
|
||||
* aclocal.m4 (LIBC_PRECONFIGURE): New macro.
|
||||
|
@ -1,5 +1,5 @@
|
||||
/* Startup code compliant to the ELF x86-64 ABI.
|
||||
Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
|
||||
Copyright (C) 2001-2012 Free Software Foundation, Inc.
|
||||
This file is part of the GNU C Library.
|
||||
Contributed by Andreas Jaeger <aj@suse.de>, 2001.
|
||||
|
||||
@ -53,12 +53,16 @@
|
||||
NULL
|
||||
*/
|
||||
|
||||
#include <sysdep.h>
|
||||
#include "bp-sym.h"
|
||||
|
||||
.text
|
||||
.globl _start
|
||||
.type _start,@function
|
||||
_start:
|
||||
cfi_startproc
|
||||
/* Clearing frame pointer is insufficient, use CFI. */
|
||||
cfi_undefined (rip)
|
||||
/* Clear the frame pointer. The ABI suggests this be done, to mark
|
||||
the outermost frame obviously. */
|
||||
xorl %ebp, %ebp
|
||||
@ -113,6 +117,7 @@ _start:
|
||||
#endif
|
||||
|
||||
hlt /* Crash if somehow `exit' does return. */
|
||||
cfi_endproc
|
||||
|
||||
/* Define a symbol for the first piece of initialized data. */
|
||||
.data
|
||||
|
Loading…
Reference in New Issue
Block a user