This is the mail archive of the
libc-alpha@sources.redhat.com
mailing list for the glibc project.
PATCH: Add labels for ia64 .proc/.end
- From: "H. J. Lu" <hjl at lucon dot org>
- To: GNU C Library <libc-alpha at sources dot redhat dot com>
- Date: Wed, 23 Feb 2005 21:49:51 -0800
- Subject: PATCH: Add labels for ia64 .proc/.end
The new ia64 assembler requires a label for .proc/.end. This patch
adds them to crtn.S.
H.J.
--
linuxthreads/
2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/unix/sysv/linux/ia64/pt-initfini.c: Add local _init
and _fini labels.
libc/
2005-02-10 H.J. Lu <hongjiu.lu@intel.com>
* sysdeps/ia64/elf/initfini.c: Add local _init and _fini
lables.
--- libc/linuxthreads/sysdeps/unix/sysv/linux/ia64/pt-initfini.c.unwind 2004-01-06 09:34:25.000000000 -0800
+++ libc/linuxthreads/sysdeps/unix/sysv/linux/ia64/pt-initfini.c 2005-02-21 15:11:01.942655859 -0800
@@ -87,6 +87,7 @@ _init:\n\
/*@_init_EPILOG_BEGINS*/\n\
.section .init\n\
.proc _init#\n\
+_init:\n\
.prologue\n\
.save ar.pfs, r34\n\
.vframe r32\n\
@@ -122,6 +123,7 @@ _fini:\n\
/*@_fini_EPILOG_BEGINS*/\n\
.section .fini\n\
.proc _fini#\n\
+_fini:\n\
.prologue\n\
.save ar.pfs, r34\n\
.vframe r32\n\
--- libc/sysdeps/ia64/elf/initfini.c.unwind 2004-08-18 16:13:30.000000000 -0700
+++ libc/sysdeps/ia64/elf/initfini.c 2005-02-21 15:11:24.376755000 -0800
@@ -116,13 +116,14 @@ __asm__ (".section .init\n"
"/*@_init_PROLOG_ENDS*/\n"
"\n"
"/*@_init_EPILOG_BEGINS*/\n"
+" .section .init\n"
" .proc _init#\n"
+"_init:\n"
" .prologue\n"
" .save ar.pfs, r34\n"
" .vframe r32\n"
" .save rp, r33\n"
" .body\n"
-" .section .init\n"
" .regstk 0,2,0,0\n"
" mov r12 = r32\n"
" mov ar.pfs = r34\n"
@@ -155,6 +156,7 @@ __asm__ (".section .init\n"
"/*@_fini_EPILOG_BEGINS*/\n"
" .section .fini\n"
" .proc _fini#\n"
+"_fini:\n"
" .prologue\n"
" .save ar.pfs, r34\n"
" .vframe r32\n"