toolchain icon indicating copy to clipboard operation
toolchain copied to clipboard

Can't reference MWDT-specific 64bit operations when linking library built with MWDT to application built with GCC

Open Karadarya opened this issue 5 years ago • 1 comments

We have a library for ARC EM (embarc_mli) that is built with MetaWare (and can’t be built with gcc). Some functions in that library operate 64 bit int values, so they use specific Metaware functions to emulate missing hardware functionality. We want to use GNU toolchain to build applications that use embarc_mli library. But when I try to link application with the library it fails because it can’t reference mwdt functions mentioned above. In our case the functions are _Lsllbs, _ldivmod_normbs_opt from arc/lib/av2em/le/harv/xlib/libmwcl.a.

Karadarya avatar Jan 20 '20 13:01 Karadarya

Probably the solution is to add to the link command also the libmwcl.a which implements the missing functionality.

claziss avatar Jan 22 '21 11:01 claziss

No activity, closing it

claziss avatar Jun 15 '23 08:06 claziss