osprey/cygnus/bfd/vms-misc.c File Reference

#include "bfd.h"
#include "sysdep.h"
#include "bfdlink.h"
#include "libbfd.h"
#include "vms.h"

Include dependency graph for vms-misc.c:

Go to the source code of this file.

Functions/Subroutines

static vms_section
*add_new_contents 
PARAMS ((bfd *, sec_ptr))
static int hash_string PARAMS ((const char *))
static asymbol *new_symbol PARAMS ((bfd *, char *))
struct bfd_hash_entry_bfd_vms_hash_newfunc (struct bfd_hash_entry *entry, struct bfd_hash_table *table, const char *string)
void _bfd_vms_get_header_values (abfd, unsigned char *buf, int *type, int *length)
int _bfd_vms_get_record (bfd *abfd)
int _bfd_vms_next_record (bfd *abfd)
char * _bfd_vms_save_sized_string (unsigned char *str, int size)
char * _bfd_vms_save_counted_string (unsigned char *ptr)
void _bfd_vms_push (bfd *abfd, uquad val, int psect)
uquad _bfd_vms_pop (bfd *abfd, int *psect)
static vms_sectionadd_new_contents (bfd *abfd, sec_ptr section)
bfd_boolean _bfd_save_vms_section (bfd *abfd, sec_ptr section, const PTR data, file_ptr offset, bfd_size_type count)
vms_section_bfd_get_vms_section (bfd *abfd, int index)
void _bfd_vms_output_begin (bfd *abfd, int rectype, int rechead)
void _bfd_vms_output_alignment (bfd *abfd, int alignto)
void _bfd_vms_output_push (bfd *abfd)
void _bfd_vms_output_pop (bfd *abfd)
void _bfd_vms_output_flush (bfd *abfd)
void _bfd_vms_output_end (bfd *abfd)
int _bfd_vms_output_check (bfd *abfd, int size)
void _bfd_vms_output_byte (bfd *abfd, unsigned int value)
void _bfd_vms_output_short (bfd *abfd, unsigned int value)
void _bfd_vms_output_long (bfd *abfd, unsigned long value)
void _bfd_vms_output_quad (bfd *abfd, uquad value)
void _bfd_vms_output_counted (bfd *abfd, char *value)
void _bfd_vms_output_dump (bfd *abfd, unsigned char *data, int length)
void _bfd_vms_output_fill (bfd *abfd, int value, int count)
static int hash_string (char *ptr) const
char * _bfd_vms_length_hash_symbol (bfd *abfd, const char *in, int maxlen)
static asymbolnew_symbol (bfd *abfd, char *name)
vms_symbol_entry_bfd_vms_enter_symbol (bfd *abfd, char *name)


Function Documentation

vms_section* _bfd_get_vms_section ( bfd abfd,
int  index 
)

Definition at line 643 of file vms-misc.c.

References bfd_error_nonrepresentable_section, bfd_set_error(), NULL, PRIV, and VMS_SECTION_COUNT.

Referenced by _bfd_vms_write_tir().

bfd_boolean _bfd_save_vms_section ( bfd abfd,
sec_ptr  section,
const PTR  data,
file_ptr  offset,
bfd_size_type  count 
)

vms_symbol_entry* _bfd_vms_enter_symbol ( bfd abfd,
char *  name 
)

void _bfd_vms_get_header_values ( abfd  ,
unsigned char *  buf,
int *  type,
int *  length 
)

Definition at line 227 of file vms-misc.c.

References bfd_getl16().

Referenced by _bfd_vms_get_record(), _bfd_vms_next_record(), and _bfd_vms_slurp_gsd().

int _bfd_vms_get_record ( bfd abfd  ) 

struct bfd_hash_entry* _bfd_vms_hash_newfunc ( struct bfd_hash_entry entry,
struct bfd_hash_table table,
const char *  string 
) [read]

char* _bfd_vms_length_hash_symbol ( bfd abfd,
const char *  in,
int  maxlen 
)

Definition at line 991 of file vms-misc.c.

References _, EOBJ_S_C_SYMSIZ, hash_string(), i, out, outbuf, printf(), PRIV, result, sprintf(), strlen(), and strncpy().

Referenced by _bfd_vms_write_gsd(), and _bfd_vms_write_tir().

int _bfd_vms_next_record ( bfd abfd  ) 

Definition at line 447 of file vms-misc.c.

References _bfd_vms_get_header_values(), _bfd_vms_get_record(), and PRIV.

Referenced by vms_object_p().

void _bfd_vms_output_alignment ( bfd abfd,
int  alignto 
)

Definition at line 696 of file vms-misc.c.

References PRIV.

Referenced by _bfd_vms_write_gsd(), _bfd_vms_write_hdr(), and _bfd_vms_write_tir().

void _bfd_vms_output_begin ( bfd abfd,
int  rectype,
int  rechead 
)

void _bfd_vms_output_byte ( bfd abfd,
unsigned int  value 
)

Definition at line 838 of file vms-misc.c.

References bfd_put_8, output_buf, and PRIV.

Referenced by _bfd_vms_output_counted(), _bfd_vms_write_eom(), and _bfd_vms_write_tir().

int _bfd_vms_output_check ( bfd abfd,
int  size 
)

Definition at line 824 of file vms-misc.c.

References MAX_OUTREC_SIZE, MIN_OUTREC_LUFT, and PRIV.

Referenced by _bfd_vms_write_gsd(), _bfd_vms_write_tir(), and sto_imm().

void _bfd_vms_output_counted ( bfd abfd,
char *  value 
)

void _bfd_vms_output_dump ( bfd abfd,
unsigned char *  data,
int  length 
)

Definition at line 931 of file vms-misc.c.

References memcpy, output_buf, and PRIV.

Referenced by _bfd_vms_output_counted(), _bfd_vms_write_hdr(), and sto_imm().

void _bfd_vms_output_end ( bfd abfd  ) 

Definition at line 807 of file vms-misc.c.

References _bfd_vms_output_flush().

Referenced by _bfd_vms_write_eom(), _bfd_vms_write_gsd(), and end_etir_record().

void _bfd_vms_output_fill ( bfd abfd,
int  value,
int  count 
)

Definition at line 952 of file vms-misc.c.

References memset, output_buf, and PRIV.

Referenced by _bfd_vms_write_hdr().

void _bfd_vms_output_flush ( bfd abfd  ) 

void _bfd_vms_output_long ( bfd abfd,
unsigned long  value 
)

void _bfd_vms_output_pop ( bfd abfd  ) 

Definition at line 726 of file vms-misc.c.

References _bfd_vms_output_flush(), and PRIV.

Referenced by _bfd_vms_write_gsd(), and end_etir_record().

void _bfd_vms_output_push ( bfd abfd  ) 

Definition at line 711 of file vms-misc.c.

References PRIV.

Referenced by _bfd_vms_write_gsd(), and start_etir_record().

void _bfd_vms_output_quad ( bfd abfd,
uquad  value 
)

Definition at line 887 of file vms-misc.c.

References bfd_put_64, output_buf, and PRIV.

Referenced by _bfd_vms_write_gsd(), _bfd_vms_write_tir(), and start_etir_record().

void _bfd_vms_output_short ( bfd abfd,
unsigned int  value 
)

uquad _bfd_vms_pop ( bfd abfd,
int *  psect 
)

Definition at line 554 of file vms-misc.c.

References _, bfd_error_bad_value, bfd_set_error(), exit(), NULL, PRIV, and stack.

Referenced by etir_ctl(), etir_opr(), etir_sto(), tir_ctl(), tir_opr(), and tir_sto().

void _bfd_vms_push ( bfd abfd,
uquad  val,
int  psect 
)

Definition at line 525 of file vms-misc.c.

References _, bfd_error_bad_value, bfd_set_error(), exit(), PRIV, stack, and STACKSIZE.

Referenced by etir_opr(), etir_sta(), tir_opr(), and tir_sta().

char* _bfd_vms_save_counted_string ( unsigned char *  ptr  ) 

Definition at line 512 of file vms-misc.c.

References _bfd_vms_save_sized_string(), and len.

Referenced by _bfd_vms_slurp_gsd(), _bfd_vms_slurp_hdr(), etir_sta(), etir_sto(), and tir_sta().

char* _bfd_vms_save_sized_string ( unsigned char *  str,
int  size 
)

Definition at line 494 of file vms-misc.c.

References bfd_malloc(), NULL, and strncpy().

Referenced by _bfd_vms_save_counted_string(), and _bfd_vms_slurp_hdr().

static vms_section* add_new_contents ( bfd abfd,
sec_ptr  section 
) [static]

static int hash_string ( char *  ptr  )  const [static]

Definition at line 972 of file vms-misc.c.

References c, end, p, and strlen().

Referenced by _bfd_vms_length_hash_symbol().

static asymbol* new_symbol ( bfd abfd,
char *  name 
) [static]

static asymbol* new_symbol PARAMS ( (bfd *, char *)   )  [static]

static int hash_string PARAMS ( (const char *)   )  [static]

Definition at line 635 of file mips-tfile.c.

static vms_section* add_new_contents PARAMS ( (bfd *, sec_ptr  )  [static]


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