[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: The Hurd and gcc 3.4.x part #3
From: |
Roland McGrath |
Subject: |
Re: The Hurd and gcc 3.4.x part #3 |
Date: |
Thu, 30 Sep 2004 14:20:53 -0400 (EDT) |
> There is a reason the default pager avoids using the vanilla
> malloc.
>
> What would you think about a patch that changes all references to
> malloc()/free() to kalloc()/kfree() in the default pager and then
> remove the stubs for malloc()/free() in kalloc.c?
Ascertain that this is the only use of allocation in the program, and sure.
If it's calling libc routines that do allocation, this is not ok.
> Figure out why the libc malloc is being linked in.
>
> We compile mach-defpager with -static; so we link against libc which
> defines malloc/free.
You don't seem to understand how static linking works.