[rtems commit] bsps/bfin: Fix bsp_specs

Sebastian Huber sebh at rtems.org
Tue Apr 29 07:43:06 UTC 2014


Module:    rtems
Branch:    master
Commit:    ef2645409d5e6dcc4f9e15dcb44393efaf1b5541
Changeset: http://git.rtems.org/rtems/commit/?id=ef2645409d5e6dcc4f9e15dcb44393efaf1b5541

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Tue Apr 29 08:43:04 2014 +0200

bsps/bfin: Fix bsp_specs

---

 c/src/lib/libbsp/bfin/TLL6527M/bsp_specs       |    5 ++++-
 c/src/lib/libbsp/bfin/bf537Stamp/bsp_specs     |    5 ++++-
 c/src/lib/libbsp/bfin/bf537Stamp/start/start.S |   11 -----------
 c/src/lib/libbsp/bfin/eZKit533/bsp_specs       |    5 ++++-
 c/src/lib/libbsp/bfin/shared/start/start.S     |   11 -----------
 5 files changed, 12 insertions(+), 25 deletions(-)

diff --git a/c/src/lib/libbsp/bfin/TLL6527M/bsp_specs b/c/src/lib/libbsp/bfin/TLL6527M/bsp_specs
index 378cdf3..540acd1 100644
--- a/c/src/lib/libbsp/bfin/TLL6527M/bsp_specs
+++ b/c/src/lib/libbsp/bfin/TLL6527M/bsp_specs
@@ -4,7 +4,10 @@
 
 *startfile:
 %{!qrtems: %(old_startfile)} \
-%{!nostdlib: %{qrtems: start.o%s -e __start}}
+%{!nostdlib: %{qrtems: start.o%s crti.o%s crtbegin.o%s -e __start}}
 
 *link:
 %{!qrtems: %(old_link)} %{qrtems: -dc -dp -N}
+
+*endfile:
+%{!qrtems: *(old_endfiles)} %{qrtems: crtend.o%s crtn.o%s }
diff --git a/c/src/lib/libbsp/bfin/bf537Stamp/bsp_specs b/c/src/lib/libbsp/bfin/bf537Stamp/bsp_specs
index 378cdf3..540acd1 100644
--- a/c/src/lib/libbsp/bfin/bf537Stamp/bsp_specs
+++ b/c/src/lib/libbsp/bfin/bf537Stamp/bsp_specs
@@ -4,7 +4,10 @@
 
 *startfile:
 %{!qrtems: %(old_startfile)} \
-%{!nostdlib: %{qrtems: start.o%s -e __start}}
+%{!nostdlib: %{qrtems: start.o%s crti.o%s crtbegin.o%s -e __start}}
 
 *link:
 %{!qrtems: %(old_link)} %{qrtems: -dc -dp -N}
+
+*endfile:
+%{!qrtems: *(old_endfiles)} %{qrtems: crtend.o%s crtn.o%s }
diff --git a/c/src/lib/libbsp/bfin/bf537Stamp/start/start.S b/c/src/lib/libbsp/bfin/bf537Stamp/start/start.S
index f59fe69..380c789 100644
--- a/c/src/lib/libbsp/bfin/bf537Stamp/start/start.S
+++ b/c/src/lib/libbsp/bfin/bf537Stamp/start/start.S
@@ -11,17 +11,6 @@
 #define HI(con32) (((con32) >> 16) & 0xFFFF)
 #endif
 
-
-	.section .init
-	.globl	__init
-	.type	__init, at function
-__init:
-	.section .fini
-	.globl	__fini
-	.type	__fini, at function
-__fini:
-
-
 	.section .start
 	.align  4
 
diff --git a/c/src/lib/libbsp/bfin/eZKit533/bsp_specs b/c/src/lib/libbsp/bfin/eZKit533/bsp_specs
index 378cdf3..540acd1 100644
--- a/c/src/lib/libbsp/bfin/eZKit533/bsp_specs
+++ b/c/src/lib/libbsp/bfin/eZKit533/bsp_specs
@@ -4,7 +4,10 @@
 
 *startfile:
 %{!qrtems: %(old_startfile)} \
-%{!nostdlib: %{qrtems: start.o%s -e __start}}
+%{!nostdlib: %{qrtems: start.o%s crti.o%s crtbegin.o%s -e __start}}
 
 *link:
 %{!qrtems: %(old_link)} %{qrtems: -dc -dp -N}
+
+*endfile:
+%{!qrtems: *(old_endfiles)} %{qrtems: crtend.o%s crtn.o%s }
diff --git a/c/src/lib/libbsp/bfin/shared/start/start.S b/c/src/lib/libbsp/bfin/shared/start/start.S
index 2ba4214..5106d02 100644
--- a/c/src/lib/libbsp/bfin/shared/start/start.S
+++ b/c/src/lib/libbsp/bfin/shared/start/start.S
@@ -10,17 +10,6 @@
 #define HI(con32) (((con32) >> 16) & 0xFFFF)
 #endif
 
-
-        .section .init
-        .globl  __init
-        .type   __init, at function
-__init:
-        .section .fini
-        .globl  __fini
-        .type   __fini, at function
-__fini:
-
-
 #if (BFIN_ON_SKYEYE)
     .section .init
 #else




More information about the vc mailing list