malloc & friends hidden proto issues

Mike Frysinger vapier at gentoo.org
Mon Jul 20 12:38:16 UTC 2009


On Monday 20 July 2009 07:54:30 Carmelo AMOROSO wrote:
> Mike Frysinger wrote:
> > On Monday 20 July 2009 07:34:32 Carmelo AMOROSO wrote:
> >> Mike Frysinger wrote:
> >>> but the default should be what
> >>> we have today -- the malloc symbols can be resolved dynamically at
> >>> runtime. this is how many debugging libraries work in the first place
> >>> -- they provide the malloc() and related symbols.
> >>
> >> this is the answer I was looking for. I thought to remove the relocation
> >> for malloc too, but I was wrong.
> >
> > would documenting this somewhere help ?  strategically placed comments
> > tend to go a long way ...
>
> why not ? include/stdlib.h I guess is the right place ?

i guess something like this right after the prototype:
/* We want the malloc symbols overridable at runtime
 * libc_hidden_proto(malloc) */
-mike
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.busybox.net/pipermail/uclibc/attachments/20090720/646f4ee8/attachment.pgp>


More information about the uClibc mailing list