[uClibc]ldso/libdl/dlib.c patch for more portable weak aliases (fwd)
Erik Andersen
andersen at codepoet.org
Thu May 2 10:32:28 UTC 2002
On Thu Apr 25, 2002 at 01:37:00PM +0200, Tobias Anderberg wrote:
> Doh, forgot to cc the list..
>
> In essence, instead of doing
>
> asm(".weak dlopen;dlopen=_dlopen");
>
> we do (warning for wrapped lines):
>
> void *dlopen(const char *, int) __attribute__ ((__weak__, __alias__
> ("_dlopen")));
>
> which should be more portable! Please give me you comments!
I tried to come up with a better way to do it, and couldn't.
So I applied your patch as is. :)
-Erik
--
Erik B. Andersen http://codepoet-consulting.com/
--This message was written using 73% post-consumer electrons--
More information about the uClibc
mailing list