This is the mail archive of the
newlib@sourceware.org
mailing list for the newlib project.
Is it possible to overload symbols in static libraries?
- From: Rohit Arul Raj <rohitarulraj at gmail dot com>
- To: newlib at sourceware dot org
- Date: Wed, 3 Aug 2011 13:50:16 +0530
- Subject: Is it possible to overload symbols in static libraries?
Hello All,
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?
Regards,
Rohit