Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 29 Mar 1995 02:23:53 +1000
From:      Bruce Evans <bde@zeta.org.au>
To:        jkh@freefall.cdrom.com, nate@sneezy.sri.com
Cc:        CVS-commiters@time.cdrom.com, bde@zeta.org.au, cvs-lib@time.cdrom.com, jkh@freebsd.org
Subject:   Re: cvs commit: src/lib/libc/stdlib strhash.c
Message-ID:  <199503281623.CAA28769@godzilla.zeta.org.au>

next in thread | raw e-mail | index | archive | help
>but it may be a compiler/strip issue.  If the routine is declared
>static, it's symbol should never be seen in the symbol table.  That

It need not be, but gcc is a friendly compiler and puts useful info
about static functions in the symbol table.  Our bsd.lib.mk strips
it from *.o but not from *.so.

>feature is a function of the compiler, not of the linker/loader.
>(Except when it was compiled with debugging I believe, though I'm not
>positive on that account)

It's essential to have static symbols for things compiled with -g and
useful to have them for things compiled without -g (e.g., /kernel).

Bruce



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199503281623.CAA28769>