malloc & friends hidden proto issues

Carmelo AMOROSO carmelo.amoroso at st.com
Mon Jul 20 12:47:00 UTC 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Mike Frysinger wrote:
> 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

yeah, short and clear ;-)

carmelo

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iEYEARECAAYFAkpkZ0QACgkQoRq/3BrK1s/RHgCgkcI9wzPotKrWbfN59LO/crtE
sdAAoPIHEyh8ZEDURim+PAUd69MEqPFq
=9gdI
-----END PGP SIGNATURE-----


More information about the uClibc mailing list