[PATCH 02/15] moxiesim/bsp_specs: Add crtbegin/end to fix link issues

Joel Sherrill joel at rtems.org
Mon Oct 3 22:57:59 UTC 2016


---
 c/src/lib/libbsp/moxie/moxiesim/bsp_specs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/c/src/lib/libbsp/moxie/moxiesim/bsp_specs b/c/src/lib/libbsp/moxie/moxiesim/bsp_specs
index 61018c2..0bcb1f9 100644
--- a/c/src/lib/libbsp/moxie/moxiesim/bsp_specs
+++ b/c/src/lib/libbsp/moxie/moxiesim/bsp_specs
@@ -4,8 +4,8 @@
 
 *startfile:
 %{!qrtems: %(old_startfile)} \
-%{!nostdlib: %{qrtems: start.o%s -e _start}}
+%{!nostdlib: %{qrtems: start.o%s -e _start crtbegin.o%s}}
 
 *link:
-%(old_link) %{!qrtems: %(old_link)} %{qrtems: -dc -dp -N}
+%(old_link) %{!qrtems: %(old_link)} %{qrtems: crtend.o%s -dc -dp -N}
 
-- 
1.8.3.1




More information about the devel mailing list