Is it possible to overload symbols in static libraries?
Rohit Arul Raj
Wed Aug 3 15:00:00 GMT 2011
I have created a static library in libgloss.a, which by default dumps
the input/output to console I/O.
I also have an UART library. Now to dump the output to UART, i thought
of overloading the console I/O functions (having them as weak
symbols). But it seems that it doesn't work with archives.
The solution that i can think of for now is:
1. Have separate libraries for console I/O and UART.
2. Link them with libgloss.a
Is there any better alternative?
More information about the Newlib