Question on __retarget_lock function
Kedar Karandikar <[email protected]>
| Newsgroups | gmane.comp.lib.newlib |
|---|---|
| Message-ID | <[email protected]> |
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