Question on __retarget_lock function

Kedar Karandikar kedarkk@gmail.com
Sat Dec 7 08:58:04 GMT 2024


Hi 
I am trying to override the __retarget_lock* dummy functions that are provided by NewLib lock.c in my baremetal environment. 

I was trying not to touch the newlib source code, but rather implement those functions in my framework.

However, the functions defined in lock.c do not have a “weak” attribute next to the functions and this causes linker error when I try to define them in my framework.

Any reason why they are not defined as weak? Is the expectation that I update the functions directly in newlib lock.c and compile the newlib after that?

Thanks for the help!

-Kedar K Karandikar
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://sourceware.org/pipermail/newlib/attachments/20241207/e104dbf8/attachment.htm>


More information about the Newlib mailing list