Our apologies for the delay in the response. I wanted to let you know that our engineering team is looking at your question and we should have a response for your shortly.
Since you did not mention the edition you are using, I wanted to remind you that if you are using the Professional or the Standard edition of Sourcery CodeBench and if under a current support contract, you may also file your issue on the Sourcery Support portal.
1 of 1 people found this helpful
Take a look at the Getting Started document, in the chapter titled CS3: The CodeSourcery Common
Startup Code Sequence, in the section titled Hosting and Semihosting. Here's the relevant paragraph:
The hosted CS3 linker scripts provide the semihosting support, and as such programs linked with
them may only be run with the debugger. For production code, or programs where memory usage
is tightly constrained, use the unhosted CS3 linker scripts instead. These scripts provide stub versions
of the system calls, which return an appropriate error value in errno. If such a stub system call is
required in the executable, the linker also produces a warning. Such a warning may indicate that you
have left debugging code active, or that your program contains unused code.
Try removing calls to the functions mentioned in the warnings. If you aren't making any calls directly, you
may be including libraries that make those calls.
Let us know if you continue to encounter this problem.
Thanks for the response, that helps me to understand the issue.
However I am surprised sscanf produces it, even in an example as simple as below:
This code gives me the warnings:
this code does not give me the warnings:
My code seems to work fine so none of these stub functions must be called/required runtime
I do not intend on removing sscanf calls from my code. Is there maybe a flag to remove these warnings now I understand them?