Re: Please help with __attribute__ weak

2005-07-26 Thread H. J. Lu
On Tue, Jul 26, 2005 at 10:16:48AM -0400, Dimitry Golubovsky wrote: > Dimitry Golubovsky wrote: > > > I need to declare a symbol which is weaker in the executable than in any > > external static or dynamic library. > > > In other words, the executable provides some fallback function > > implement

Re: Please help with __attribute__ weak

2005-07-26 Thread Dimitry Golubovsky
Dimitry Golubovsky wrote: > I need to declare a symbol which is weaker in the executable than in any > external static or dynamic library. > In other words, the executable provides some fallback function > implementation (in my example, for "write"). But if the linker or > dynamic linker resolves

Re: Please help with __attribute__ weak

2005-07-26 Thread H. J. Lu
On Tue, Jul 26, 2005 at 07:19:43AM -0400, Dimitry Golubovsky wrote: > > I need to declare a symbol which is weaker in the executable than in any > external static or dynamic library. > > In other words, the executable provides some fallback function > implementation (in my example, for "write").

Please help with __attribute__ weak

2005-07-26 Thread Dimitry Golubovsky
I need to declare a symbol which is weaker in the executable than in any external static or dynamic library. In other words, the executable provides some fallback function implementation (in my example, for "write"). But if the linker or dynamic linker resolves it, the symbol definition from an