Back to index

cell-binutils  2.17cvs20070401
Defines | Functions
obj-som.h File Reference
#include "bfd/som.h"
#include "targ-cpu.h"

Go to the source code of this file.

Defines

#define OBJ_SOM   1
#define FALSE   0
#define TRUE   !FALSE
#define som_symbol(asymbol)   ((som_symbol_type *) (&(asymbol)->the_bfd))
#define obj_symbol_new_hook(s)   {;}
#define obj_set_section_attributes   bfd_som_set_section_attributes
#define obj_set_subsection_attributes   bfd_som_set_subsection_attributes
#define obj_set_symbol_type   bfd_som_set_symbol_type
#define SEPARATE_STAB_SECTIONS   1
#define STAB_SECTION_NAME   "$GDB_SYMBOLS$"
#define STAB_STRING_SECTION_NAME   "$GDB_STRINGS$"
#define INIT_STAB_SECTION(seg)   obj_som_init_stab_section (seg)
#define obj_frob_file()   som_frob_file()

Functions

void som_file_symbol (char *)
void som_frob_file (void)
void obj_som_version (int)
void obj_som_init_stab_section (segT)
void obj_som_copyright (int)
void obj_som_compiler (int)

Define Documentation

#define FALSE   0

Definition at line 34 of file obj-som.h.

Definition at line 68 of file obj-som.h.

#define obj_frob_file ( )    som_frob_file()

Definition at line 72 of file obj-som.h.

Definition at line 53 of file obj-som.h.

Definition at line 54 of file obj-som.h.

Definition at line 57 of file obj-som.h.

#define OBJ_SOM   1

Definition at line 28 of file obj-som.h.

#define obj_symbol_new_hook (   s)    {;}

Definition at line 48 of file obj-som.h.

#define SEPARATE_STAB_SECTIONS   1

Definition at line 62 of file obj-som.h.

#define som_symbol (   asymbol)    ((som_symbol_type *) (&(asymbol)->the_bfd))

Definition at line 39 of file obj-som.h.

#define STAB_SECTION_NAME   "$GDB_SYMBOLS$"

Definition at line 63 of file obj-som.h.

#define STAB_STRING_SECTION_NAME   "$GDB_STRINGS$"

Definition at line 64 of file obj-som.h.

#define TRUE   !FALSE

Definition at line 35 of file obj-som.h.


Function Documentation

void obj_som_compiler ( int  )
void obj_som_copyright ( int  )

Definition at line 210 of file obj-som.c.

{
  segT saved_seg = now_seg;
  segT space;
  subsegT saved_subseg = now_subseg;
  char *p, *file;
  unsigned int stroff;

  /* Make the space which will contain the debug subspaces.  */
  space = bfd_make_section_old_way (stdoutput, "$GDB_DEBUG$");

  /* Set SOM specific attributes for the space.  In particular we set
     the space "defined", "private", "sort_key", and "spnum" values.

     Due to a bug in pxdb (called by hpux linker), the sort keys
     of the various stabs spaces/subspaces need to be "small".  We
     reserve range 72/73 which appear to work well.  */
  obj_set_section_attributes (space, 1, 1, 72, 2);
  bfd_set_section_alignment (stdoutput, space, 2);

  /* Set the containing space for both stab sections to be $GDB_DEBUG$
     (just created above).  Also set some attributes which BFD does
     not understand.  In particular, access bits, sort keys, and load
     quadrant.  */
  obj_set_subsection_attributes (seg, space, 0x1f, 73, 0, 0, 0, 0);
  bfd_set_section_alignment (stdoutput, seg, 2);

  /* Make some space for the first special stab entry and zero the memory.
     It contains information about the length of this file's
     stab string and the like.  Using it avoids the need to
     relocate the stab strings.

     The $GDB_STRINGS$ space will be created as a side effect of
     the call to get_stab_string_offset.  */
  p = frag_more (12);
  memset (p, 0, 12);
  as_where (&file, (unsigned int *) NULL);
  stroff = get_stab_string_offset (file, "$GDB_STRINGS$");
  know (stroff == 1);
  md_number_to_chars (p, stroff, 4);
  seg_info (seg)->stabu.p = p;

  /* Set the containing space for both stab sections to be $GDB_DEBUG$
     (just created above).  Also set some attributes which BFD does
     not understand.  In particular, access bits, sort keys, and load
     quadrant.  */
  seg = bfd_get_section_by_name (stdoutput, "$GDB_STRINGS$");
  obj_set_subsection_attributes (seg, space, 0x1f, 72, 0, 0, 0, 0);
  bfd_set_section_alignment (stdoutput, seg, 2);

  subseg_set (saved_seg, saved_subseg);
}

Here is the call graph for this function:

void obj_som_version ( int  )
void som_file_symbol ( char *  )
void som_frob_file ( void  )

Definition at line 293 of file obj-som.c.

Here is the call graph for this function: