[rtems commit] bsps/powerpc: Remove __atexit form start.o
Sebastian Huber
sebh at rtems.org
Sun Jul 5 16:00:53 UTC 2020
Module: rtems
Branch: master
Commit: 69690f60b495ccd6cd18f1a2f82c77acb08f45a4
Changeset: http://git.rtems.org/rtems/commit/?id=69690f60b495ccd6cd18f1a2f82c77acb08f45a4
Author: Sebastian Huber <sebastian.huber at embedded-brains.de>
Date: Tue Apr 21 13:10:07 2020 +0200
bsps/powerpc: Remove __atexit form start.o
Remove superflous __atexit stuff in start.o. It is no longer required
by GCC and may cause linker problems.
See GCC commit:
commit 362c63a5e8b5aacfff3e5af0911e42ba7c775042
Author: Geoff Keating <geoffk at cygnus.com>
Date: Fri Apr 14 23:16:25 2000 +0000
---
bsps/powerpc/psim/start/start.S | 11 -----------
bsps/powerpc/ss555/start/start.S | 17 -----------------
2 files changed, 28 deletions(-)
diff --git a/bsps/powerpc/psim/start/start.S b/bsps/powerpc/psim/start/start.S
index 645a022..c56e246 100644
--- a/bsps/powerpc/psim/start/start.S
+++ b/bsps/powerpc/psim/start/start.S
@@ -25,17 +25,6 @@
.LCTOC1 = .+32768
- .extern FUNC_NAME(atexit)
- .globl FUNC_NAME(__atexit)
- .section ".sdata","aw"
- .align 2
-FUNC_NAME(__atexit): /* tell C's eabi-ctor's we have an atexit function */
- .long FUNC_NAME(atexit)@fixup /* and that it is to register __do_global_dtors */
-
- .section ".fixup","aw"
- .align 2
- .long FUNC_NAME(__atexit)
-
.section ".got2","aw"
.Ltable = .-.LCTOC1
.long .LCTOC1 /* address we think .LCTOC1 is loaded at */
diff --git a/bsps/powerpc/ss555/start/start.S b/bsps/powerpc/ss555/start/start.S
index 443a40f..121403e 100644
--- a/bsps/powerpc/ss555/start/start.S
+++ b/bsps/powerpc/ss555/start/start.S
@@ -186,23 +186,6 @@
.L_D2:
.previous
-/*
- * Tell C's eabi-ctor's that we have an atexit function,
- * and that it is to register __do_global_dtors.
- */
- EXTERN_PROC(atexit)
- PUBLIC_VAR(__atexit)
- .section ".sdata","aw"
- .align 2
-SYM(__atexit):
- EXT_PROC_REF(atexit)@fixup
- .previous
-
- .section ".fixup","aw"
- .align 2
- EXT_SYM_REF(__atexit)
- .previous
-
/* That should do it */
/*
More information about the vc
mailing list