[Q] Symbol versioning

Ian Lance Taylor ian@zembu.com
Fri Jun 16 22:59:00 GMT 2000


   From: Bharadwaj Yadavalli <sby@ives.lkg.dec.com>
   Date: Fri, 16 Jun 2000 17:06:38 -0400 (EDT)

   I find a value 32770 in the SHT_GNU_versym associated with the symbol
   fdopen, sys_errlist and several others. There is no index 32770 in the
   version definition array !! Can some kind soul explain me what I am
   missing? 

>From include/elf/common.h:

/* This flag appears in a Versym structure.  It means that the symbol
   is hidden, and is only visible with an explicit version number.
   This is a GNU extension.  */

#define VERSYM_HIDDEN		0x8000

/* This is the mask for the rest of the Versym information.  */

#define VERSYM_VERSION		0x7fff

Ian


More information about the Binutils mailing list