[PATCH 1/2] generic_or1k: Use the correct bsp_specs file
Hesham ALMatary
heshamelmatary at gmail.com
Mon May 25 17:09:18 UTC 2015
---
c/src/lib/libbsp/or1k/generic_or1k/bsp_specs | 10 ++++++----
c/src/lib/libbsp/or1k/generic_or1k/start/start.S | 7 -------
2 files changed, 6 insertions(+), 11 deletions(-)
diff --git a/c/src/lib/libbsp/or1k/generic_or1k/bsp_specs b/c/src/lib/libbsp/or1k/generic_or1k/bsp_specs
index 0fcd2dc..082653a 100644
--- a/c/src/lib/libbsp/or1k/generic_or1k/bsp_specs
+++ b/c/src/lib/libbsp/or1k/generic_or1k/bsp_specs
@@ -3,9 +3,11 @@
%rename link old_link
*startfile:
-%{!qrtems: %(old_startfile)} %{!nostdlib: %{qrtems: \
-%{!qrtems_debug: start.o%s} \
-%{qrtems_debug: start_g.o%s}}}
+%{!qrtems: %(old_startfile)} \
+%{!nostdlib: %{qrtems: start.o%s crti.o%s crtbegin.o%s -e _start}}
*link:
-%{!qrtems: %(old_link)} %{qrtems: -dc -dp -N -e _start}
+%{!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/or1k/generic_or1k/start/start.S b/c/src/lib/libbsp/or1k/generic_or1k/start/start.S
index ae6d41a..d951a55 100644
--- a/c/src/lib/libbsp/or1k/generic_or1k/start/start.S
+++ b/c/src/lib/libbsp/or1k/generic_or1k/start/start.S
@@ -180,10 +180,3 @@ _end_clear_bss:
unhandled_exception:
l.nop
-
-/* Make C++ compiler happy */
-.section .data
-.global __dso_handle
-.weak __dso_handle
-__dso_handle:
-.long 0
--
2.1.0
More information about the devel
mailing list