[PATCH] Fix or1k C++ build failure

Hesham ALMatary heshamelmatary at gmail.com
Sun Apr 26 16:28:08 UTC 2015


Closes #2329
---
 c/src/lib/libbsp/or1k/generic_or1k/start/start.S | 7 +++++++
 1 file changed, 7 insertions(+)

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 d951a55..ae6d41a 100644
--- a/c/src/lib/libbsp/or1k/generic_or1k/start/start.S
+++ b/c/src/lib/libbsp/or1k/generic_or1k/start/start.S
@@ -180,3 +180,10 @@ _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