I've been reading through the available brand sources (sn1 and lx brands) and 
now I'm wondering why malloc() usage in brand support libraries is prohibited.

I had no opportunity to test it out myself, but probably someone could suggest 
what will happen if one attempts to malloc() something from the brand support 
library?

I'm new to OpenSolaris kernel development. But as far as I can tell appropriate 
internal structure fields for brk() syscall are just zero-initialized in case 
of exec'ing certain binary types:

                        env.ex_bssbase = (caddr_t)0;
                        env.ex_brkbase = (caddr_t)0;
                        env.ex_brksize = 0;

My understanding of the reasons why this is being done is rather limited, so 
maybe someone will help me out?

Certainly there should be a way to enable malloc() support for brand support 
library. If so, what should be done to archive this goal?

Any help is greatly appreciated.
-- 
This message posted from opensolaris.org

Reply via email to