Our existing algorithm project builds the static DSP library for C674x processor. We want to support the dynamic linking, which requires the static library to be converted to dynamic library.
I tried to create a dynamic wrapper library project and link my static library to export the functions I want to exported part of the dynamic library. As soon as, I use one symbol from my existing static library I start seeing following errors:
error: symbol "numFrees" is accessed using DP addressing in file
"../MyStaticLibrary.lib"; non-DSBT baremetal dynamic library
(--dynamic=lib) cannot use DP addressing
error: symbol "numFrees" is accessed using DP addressing in file
"../MyStaticLibrary.lib"; non-DSBT baremetal dynamic library
(--dynamic=lib) cannot use DP addressing
error: symbol "numMallocs" is accessed using DP addressing in file
"../MyStaticLibrary.lib"; non-DSBT baremetal dynamic library
Any idea or comments on above errors? Is my approach right on converting pre-built static lib to dynamic lib or its technically not possible with Lightweight (Bare Metal) Dynamic Linking Model?
Appreciate any pointers on converting pre-built static library to dynamic library?
Thanks!