summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/common/initfini.c
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2002-10-01 16:49:19 +0000
committerEric Andersen <andersen@codepoet.org>2002-10-01 16:49:19 +0000
commita64f4d5b57c05822aa8c9267f7e25cf42d1856d4 (patch)
treed0ecd65c8a058daaaf696332bcd062c9ddc62d06 /libc/sysdeps/linux/common/initfini.c
parentb58a631942341b6ccb62ab400e862f404e22dbbf (diff)
Patch from Stefan Allius <allius@atecom.com>:
----------------------------------- In extra/Configs/Config.sh I added the INCLUDE_PTHREADS statement and change the default values for BUILD_UCLIBC_LDSO and HAVE_SHARED. ----------------------------------- In extra/scripts/initfini.pl My last patch removes two labels, which migth be used by the .size statements. (Sorry, but I'm a perl beginner) I fixed it. ----------------------------------- In libc/sysdeps/linux/common/initfini.c I fixed two warnings "nested extern declaration of `i_am_not_a_leaf.. ----------------------------------- In libc/sysdeps/linux/sh/__init_brl.c brk.c sbrk.c I fixed some compiler warnings which comes from a wrong inclusion order. -----------------------------------
Diffstat (limited to 'libc/sysdeps/linux/common/initfini.c')
-rw-r--r--libc/sysdeps/linux/common/initfini.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/common/initfini.c b/libc/sysdeps/linux/common/initfini.c
index c2e82d591..4a6ebee75 100644
--- a/libc/sysdeps/linux/common/initfini.c
+++ b/libc/sysdeps/linux/common/initfini.c
@@ -84,6 +84,7 @@ call_gmon_start(void)
SECTION (".init")
HIDDEN(_init)
+extern void i_am_not_a_leaf (void);
extern void _init (void);
void _init (void)
{
@@ -101,7 +102,6 @@ void _init (void)
/* Let GCC know that _init is not a leaf function by having a dummy
* function call here. We arrange for this call to be omitted from
* either crt file. */
- extern void i_am_not_a_leaf (void);
i_am_not_a_leaf ();
}
asm ("\n/*@_init_PROLOG_UNPAUSES*/");
@@ -121,6 +121,7 @@ asm ("\n/*@_fini_PROLOG_BEGINS*/");
SECTION (".fini")
HIDDEN(_fini)
+extern void i_am_not_a_leaf2 (void);
extern void _fini (void);
void _fini (void)
{
@@ -134,7 +135,6 @@ void _fini (void)
/* Let GCC know that _fini is not a leaf function by having a dummy
function call here. We arrange for this call to be omitted from
either crt file. */
- extern void i_am_not_a_leaf2 (void);
i_am_not_a_leaf2 ();
}