[rtems-tools commit] linkers: Avoid cast

Sebastian Huber sebh at rtems.org
Tue Jan 5 06:06:51 UTC 2016


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

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Mon Jan  4 11:15:28 2016 +0100

linkers: Avoid cast

---

 linkers/rtems-syms.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/linkers/rtems-syms.cpp b/linkers/rtems-syms.cpp
index c8f54ae..97315ac 100644
--- a/linkers/rtems-syms.cpp
+++ b/linkers/rtems-syms.cpp
@@ -104,7 +104,7 @@ static const char* c_trailer[] =
 static const char* c_rtl_call_body[] =
 {
   "{",
-  "  rtems_rtl_base_sym_global_add ((const unsigned char*) &rtems__rtl_base_globals,",
+  "  rtems_rtl_base_sym_global_add (&rtems__rtl_base_globals[0],",
   "                                 rtems__rtl_base_globals_size);",
   "}",
   0




More information about the vc mailing list