Glenn Fowler wrote:
> aren't there some solaris build modes that bind certain
> library symbols at link time?

Yes, building with -B direct, though those can still be overridden
by objects marked by the linker as interposers.

http://docs.sun.com/app/docs/doc/819-0690/aehzq?a=view
http://blogs.sun.com/rie/entry/direct_binding_now_the_default
http://blogs.sun.com/rie/entry/direct_binding_the_zdirect_bdirect

> if so, are malloc/free ever in that set of bound symbols?

Not if you link with libc, which have marked malloc/free as
explictly never to be direct linked since we know so many
objects like to interpose on them.

http://bugs.opensolaris.org/bugdatabase/view_bug.do?bug_id=4850703

The linker guys can explain more if needed - they respond well to
questions on tools-linking at opensolaris.org.

-- 
        -Alan Coopersmith-           alan.coopersmith at sun.com
         Sun Microsystems, Inc. - X Window System Engineering


Reply via email to