osprey/cygnus/bfd/syms.c File Reference

#include "bfd.h"
#include "sysdep.h"
#include "libbfd.h"
#include "safe-ctype.h"
#include "bfdlink.h"
#include "aout/stab_gnu.h"

Include dependency graph for syms.c:

Go to the source code of this file.

Data Types

type  section_to_type
type  indexentry
type  stab_find_info

Defines

#define ENABLE_CACHING
#define STRDXOFF   (0)
#define TYPEOFF   (4)
#define OTHEROFF   (5)
#define DESCOFF   (6)
#define VALOFF   (8)
#define STABSIZE   (12)

Functions/Subroutines

bfd_boolean bfd_is_local_label (bfd *abfd, asymbol *sym)
bfd_boolean bfd_set_symtab (bfd *abfd, asymbol **location, unsigned int symcount)
void bfd_print_symbol_vandf (bfd *abfd, void *arg, asymbol *symbol)
asymbol_bfd_generic_make_empty_symbol (bfd *abfd)
static char coff_section_type (const char *s)
static char decode_section_type (const struct bfd_section *section)
int bfd_decode_symclass (asymbol *symbol)
bfd_boolean bfd_is_undefined_symclass (int symclass)
void bfd_symbol_info (asymbol *symbol, symbol_info *ret)
long _bfd_generic_read_minisymbols (bfd *abfd, bfd_boolean dynamic, void **minisymsp, unsigned int *sizep)
asymbol_bfd_generic_minisymbol_to_symbol (bfd *abfd ATTRIBUTE_UNUSED, bfd_boolean dynamic ATTRIBUTE_UNUSED, const void *minisym, asymbol *sym ATTRIBUTE_UNUSED)
static int cmpindexentry (const void *a, const void *b)
bfd_boolean _bfd_stab_section_find_nearest_line (bfd *abfd, asymbol **symbols, asection *section, bfd_vma offset, bfd_boolean *pfound, const char **pfilename, const char **pfnname, unsigned int *pline, void **pinfo)

Variables

static struct section_to_type stt []


Define Documentation

#define DESCOFF   (6)

#define ENABLE_CACHING

Definition at line 840 of file syms.c.

#define OTHEROFF   (5)

#define STABSIZE   (12)

#define STRDXOFF   (0)

#define TYPEOFF   (4)

#define VALOFF   (8)


Function Documentation

asymbol* _bfd_generic_make_empty_symbol ( bfd abfd  ) 

Definition at line 523 of file syms.c.

References bfd_zalloc().

asymbol* _bfd_generic_minisymbol_to_symbol ( bfd *abfd  ATTRIBUTE_UNUSED,
bfd_boolean dynamic  ATTRIBUTE_UNUSED,
const void minisym,
asymbol *sym  ATTRIBUTE_UNUSED 
)

Definition at line 821 of file syms.c.

long _bfd_generic_read_minisymbols ( bfd abfd,
bfd_boolean  dynamic,
void **  minisymsp,
unsigned int *  sizep 
)

bfd_boolean _bfd_stab_section_find_nearest_line ( bfd abfd,
asymbol **  symbols,
asection section,
bfd_vma  offset,
bfd_boolean *  pfound,
const char **  pfilename,
const char **  pfnname,
unsigned int *  pline,
void **  pinfo 
)

int bfd_decode_symclass ( asymbol symbol  ) 

bfd_boolean bfd_is_local_label ( bfd abfd,
asymbol sym 
)

bfd_boolean bfd_is_undefined_symclass ( int  symclass  ) 

Definition at line 717 of file syms.c.

Referenced by bfd_symbol_info().

void bfd_print_symbol_vandf ( bfd abfd,
void arg,
asymbol symbol 
)

bfd_boolean bfd_set_symtab ( bfd abfd,
asymbol **  location,
unsigned int  symcount 
)

void bfd_symbol_info ( asymbol symbol,
symbol_info ret 
)

static int cmpindexentry ( const void a,
const void b 
) [static]

Definition at line 859 of file syms.c.

References indexentry::val.

Referenced by _bfd_stab_section_find_nearest_line().

static char coff_section_type ( const char *  s  )  [static]

Definition at line 586 of file syms.c.

References section_to_type::section, strlen(), strncmp(), and section_to_type::type.

Referenced by bfd_decode_symclass().

static char decode_section_type ( const struct bfd_section section  )  [static]


Variable Documentation

Initial value:

{
  {".bss", 'b'},
  {"code", 't'},    
  {".data", 'd'},
  {"*DEBUG*", 'N'},
  {".debug", 'N'},              
  {".drectve", 'i'},            
  {".edata", 'e'},              
  {".fini", 't'},   
  {".idata", 'i'},              
  {".init", 't'},   
  {".pdata", 'p'},              
  {".rdata", 'r'},    
  {".rodata", 'r'},   
  {".sbss", 's'},   
  {".scommon", 'c'},    
  {".sdata", 'g'},    
  {".text", 't'},
  {"vars", 'd'},    
  {"zerovars", 'b'},    
  {0, 0}
}

Definition at line 555 of file syms.c.

Referenced by ElfSymbol::decode_st_type(), and swap_out_syms().


Generated on Wed Apr 8 14:52:43 2009 for Open64 by  doxygen 1.5.6