summaryrefslogtreecommitdiff
path: root/sysdeps/powerpc
diff options
context:
space:
mode:
Diffstat (limited to 'sysdeps/powerpc')
-rw-r--r--sysdeps/powerpc/powerpc32/elf/start.S8
-rw-r--r--sysdeps/powerpc/powerpc64/elf/start.S12
2 files changed, 7 insertions, 13 deletions
diff --git a/sysdeps/powerpc/powerpc32/elf/start.S b/sysdeps/powerpc/powerpc32/elf/start.S
index 063df75328..04e3d358f1 100644
--- a/sysdeps/powerpc/powerpc32/elf/start.S
+++ b/sysdeps/powerpc/powerpc32/elf/start.S
@@ -1,5 +1,5 @@
/* Startup code for programs linked with GNU libc.
- Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+ Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
The GNU C Library is free software; you can redistribute it and/or
@@ -23,13 +23,11 @@
/* These are the various addresses we require. */
.section ".rodata"
.align 2
- weak_extern(_init)
- weak_extern(_fini)
L(start_addresses):
.long _SDA_BASE_
.long JUMPTARGET(BP_SYM (main))
- .long JUMPTARGET(_init)
- .long JUMPTARGET(_fini)
+ .long JUMPTARGET(__libc_csu_init)
+ .long JUMPTARGET(__libc_csu_fini)
ASM_SIZE_DIRECTIVE(L(start_addresses))
.section ".text"
diff --git a/sysdeps/powerpc/powerpc64/elf/start.S b/sysdeps/powerpc/powerpc64/elf/start.S
index 129f126e9d..65fa52c0f5 100644
--- a/sysdeps/powerpc/powerpc64/elf/start.S
+++ b/sysdeps/powerpc/powerpc64/elf/start.S
@@ -23,16 +23,12 @@
/* These are the various addresses we require. */
.section ".rodata"
.align 3
- weak_extern(_init)
- weak_extern(_fini)
- weak_extern(._init)
- weak_extern(._fini)
L(start_addresses):
.quad 0 /* was _SDA_BASE_ but not in 64-bit ABI*/
/* function descriptors so don't need JUMPTARGET */
- .quad BP_SYM(main)
- .quad _init
- .quad _fini
+ .quad BP_SYM(main)
+ .quad __libc_csu_init
+ .quad __libc_csu_fini
ASM_SIZE_DIRECTIVE(L(start_addresses))
@@ -55,7 +51,7 @@ ENTRY(_start)
ld r8,.L01(r2)
/* and continue in libc-start, in glibc. */
- b JUMPTARGET(BP_SYM(__libc_start_main))
+ b JUMPTARGET(BP_SYM(__libc_start_main))
END(_start)