From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,a15081a4b5c7653e X-Google-Attributes: gidfee84,public From: Joe Mario Subject: Re: linker hidden symbols Date: 1999/12/13 Message-ID: <38552302.963D0BFB@zk3.dec.com>#1/1 X-Deja-AN: 560184562 Content-Transfer-Encoding: 7bit References: X-Accept-Language: en Content-Type: text/plain; charset=us-ascii X-Complaints-To: iass@lead.zk3.dec.com X-Trace: lead.zk3.dec.com 945103616 20971 16.141.0.18 (13 Dec 1999 16:46:56 GMT) Organization: UBPG Mime-Version: 1.0 NNTP-Posting-Date: 13 Dec 1999 16:46:56 GMT Newsgroups: comp.unix.osf.osf1 brandon chubb wrote: > Does anyone know if the ld flags -hidden and -hidden_symbol still work? > It seems to completely ignore them..if anyone's used them and can > give me a command line example I'd be much appreciative. Any symbols > I hand to -hidden_symbol still show up from 'nm'. The -hidden and -hidden_symbol linker flags work fine. They only work for shared libraries. The "nm" utility doesn't understand hidden symbols since hidden symbols are only related to shared libraries and used by the runtime loader. If you use "odump -Dtv your_lib.so" to dump your library's symbols, you'll see the hidden symbols marked LOCAL rather than GLOBAL. Joe Mario