# 1 "plan9-i386.c"
 






























 


 


 





# 1 "bfd.h" 1
 
























 

























# 1 "../include/ansidecl.h" 1
 

















 








































































 

 



 




















 









# 161 "../include/ansidecl.h"


 









 







 







 








 


























# 52 "bfd.h" 2


 




















 
typedef struct _bfd bfd;

 





 

 

 
 
 
 









typedef enum bfd_boolean {false, true} boolean;






 
 





 
typedef long int file_ptr;

 





# 136 "bfd.h"








typedef unsigned long long  bfd_vma;
typedef long long  bfd_signed_vma;
typedef unsigned long long  bfd_size_type;
typedef unsigned long long  symvalue;















# 183 "bfd.h"




typedef unsigned int flagword;	 
typedef unsigned char bfd_byte;

 

typedef enum bfd_format {
	      bfd_unknown = 0,	 
	      bfd_object,	 
	      bfd_archive,	 
	      bfd_core,		 
	      bfd_type_end}	 
         bfd_format;

 






 


 


 


 



 


 


 



 


 




 



 




 





 



 

 
typedef unsigned long symindex;

 
typedef const struct reloc_howto_struct reloc_howto_type;



 








 



 
 
typedef struct carsym {
  char *name;
  file_ptr file_offset;		 
} carsym;			 

  
 

struct orl {			 
  char **name;			  
  file_ptr pos;			 
  int namidx;			 
};


 
typedef struct lineno_cache_entry {
  unsigned int line_number;	   
  union {
    struct symbol_cache_entry *sym;  
    unsigned long offset;	 
  } u;
} alent;

 




typedef struct sec *sec_ptr;


















typedef struct stat stat_type; 

typedef enum bfd_print_symbol
{ 
  bfd_print_symbol_name,
  bfd_print_symbol_more,
  bfd_print_symbol_all
} bfd_print_symbol_type;
    
 

typedef struct _symbol_info
{
  symvalue value;
  char type;
  const  char *name;             
  unsigned char stab_type;      
  char stab_other;              
  short stab_desc;              
  const  char *stab_name;        
} symbol_info;

 

extern const char *bfd_get_stab_name  (int)  ;

 

 


struct bfd_hash_entry
{
   
  struct bfd_hash_entry *next;
   
  const char *string;
   

  unsigned long hash;
};

 

struct bfd_hash_table
{
   
  struct bfd_hash_entry **table;
   
  unsigned int size;
   






  struct bfd_hash_entry *(*newfunc)  (struct bfd_hash_entry *,
					     struct bfd_hash_table *,
					     const char *)  ;
    

  void *  memory;
};

 
extern boolean bfd_hash_table_init
   (struct bfd_hash_table *,
	   struct bfd_hash_entry *(*) (struct bfd_hash_entry *,
				       struct bfd_hash_table *,
				       const char *))  ;

 
extern boolean bfd_hash_table_init_n
   (struct bfd_hash_table *,
	   struct bfd_hash_entry *(*) (struct bfd_hash_entry *,
				       struct bfd_hash_table *,
				       const char *),
	   unsigned int size)  ;

 
extern void bfd_hash_table_free  (struct bfd_hash_table *)  ;

 



extern struct bfd_hash_entry *bfd_hash_lookup
   (struct bfd_hash_table *, const char *, boolean create,
	   boolean copy)  ;

 
extern void bfd_hash_replace
   (struct bfd_hash_table *, struct bfd_hash_entry *old,
	   struct bfd_hash_entry *nw)  ;

 
extern struct bfd_hash_entry *bfd_hash_newfunc
   (struct bfd_hash_entry *, struct bfd_hash_table *,
	   const char *)  ;

 
extern void *  bfd_hash_allocate  (struct bfd_hash_table *,
				      unsigned int)  ;

 


extern void bfd_hash_traverse  (struct bfd_hash_table *,
				       boolean (*) (struct bfd_hash_entry *,
						    void * ),
				       void *  info)  ;

 


























 

 


extern bfd_size_type bfd_read
   (void * , bfd_size_type size, bfd_size_type nitems, bfd *abfd)  ;
extern bfd_size_type bfd_write
   (const void * , bfd_size_type size, bfd_size_type nitems, bfd *abfd)  ;
extern int bfd_seek  (bfd *abfd, file_ptr fp, int direction)  ;
extern long bfd_tell  (bfd *abfd)  ;
extern int bfd_flush  (bfd *abfd)  ;
extern int bfd_stat  (bfd *abfd, struct stat *)  ;


 






























extern boolean bfd_record_phdr
   (bfd *, unsigned long, boolean, flagword, boolean, bfd_vma,
	   boolean, boolean, unsigned int, struct sec **)  ;

 

bfd_vma		bfd_getb64	    (const unsigned char *)  ;
bfd_vma 	bfd_getl64	    (const unsigned char *)  ;
bfd_signed_vma	bfd_getb_signed_64  (const unsigned char *)  ;
bfd_signed_vma	bfd_getl_signed_64  (const unsigned char *)  ;
bfd_vma		bfd_getb32	    (const unsigned char *)  ;
bfd_vma		bfd_getl32	    (const unsigned char *)  ;
bfd_signed_vma	bfd_getb_signed_32  (const unsigned char *)  ;
bfd_signed_vma	bfd_getl_signed_32  (const unsigned char *)  ;
bfd_vma		bfd_getb16	    (const unsigned char *)  ;
bfd_vma		bfd_getl16	    (const unsigned char *)  ;
bfd_signed_vma	bfd_getb_signed_16  (const unsigned char *)  ;
bfd_signed_vma	bfd_getl_signed_16  (const unsigned char *)  ;
void		bfd_putb64	    (bfd_vma, unsigned char *)  ;
void		bfd_putl64	    (bfd_vma, unsigned char *)  ;
void		bfd_putb32	    (bfd_vma, unsigned char *)  ;
void		bfd_putl32	    (bfd_vma, unsigned char *)  ;
void		bfd_putb16	    (bfd_vma, unsigned char *)  ;
void		bfd_putl16	    (bfd_vma, unsigned char *)  ;

 


struct ecoff_debug_info;
struct ecoff_debug_swap;
struct ecoff_extr;
struct symbol_cache_entry;
struct bfd_link_info;
struct bfd_link_hash_entry;
struct bfd_elf_version_tree;

extern bfd_vma bfd_ecoff_get_gp_value  (bfd * abfd)  ;
extern boolean bfd_ecoff_set_gp_value  (bfd *abfd, bfd_vma gp_value)  ;
extern boolean bfd_ecoff_set_regmasks
   (bfd *abfd, unsigned long gprmask, unsigned long fprmask,
	   unsigned long *cprmask)  ;
extern void *  bfd_ecoff_debug_init
   (bfd *output_bfd, struct ecoff_debug_info *output_debug,
	   const struct ecoff_debug_swap *output_swap,
	   struct bfd_link_info *)  ;
extern void bfd_ecoff_debug_free
   (void *  handle, bfd *output_bfd, struct ecoff_debug_info *output_debug,
	   const struct ecoff_debug_swap *output_swap,
	   struct bfd_link_info *)  ;
extern boolean bfd_ecoff_debug_accumulate
   (void *  handle, bfd *output_bfd, struct ecoff_debug_info *output_debug,
	   const struct ecoff_debug_swap *output_swap,
	   bfd *input_bfd, struct ecoff_debug_info *input_debug,
	   const struct ecoff_debug_swap *input_swap,
	   struct bfd_link_info *)  ;
extern boolean bfd_ecoff_debug_accumulate_other
   (void *  handle, bfd *output_bfd, struct ecoff_debug_info *output_debug,
	   const struct ecoff_debug_swap *output_swap, bfd *input_bfd,
	   struct bfd_link_info *)  ;
extern boolean bfd_ecoff_debug_externals
   (bfd *abfd, struct ecoff_debug_info *debug,
	   const struct ecoff_debug_swap *swap,
	   boolean relocateable,
	   boolean (*get_extr) (struct symbol_cache_entry *,
				struct ecoff_extr *),
	   void (*set_index) (struct symbol_cache_entry *,
			      bfd_size_type))  ;
extern boolean bfd_ecoff_debug_one_external
   (bfd *abfd, struct ecoff_debug_info *debug,
	   const struct ecoff_debug_swap *swap,
	   const char *name, struct ecoff_extr *esym)  ;
extern bfd_size_type bfd_ecoff_debug_size
   (bfd *abfd, struct ecoff_debug_info *debug,
	   const struct ecoff_debug_swap *swap)  ;
extern boolean bfd_ecoff_write_debug
   (bfd *abfd, struct ecoff_debug_info *debug,
	   const struct ecoff_debug_swap *swap, file_ptr where)  ;
extern boolean bfd_ecoff_write_accumulated_debug
   (void *  handle, bfd *abfd, struct ecoff_debug_info *debug,
	   const struct ecoff_debug_swap *swap,
	   struct bfd_link_info *info, file_ptr where)  ;
extern boolean bfd_mips_ecoff_create_embedded_relocs
   (bfd *, struct bfd_link_info *, struct sec *, struct sec *,
	   char **)  ;

 

struct bfd_link_needed_list
{
  struct bfd_link_needed_list *next;
  bfd *by;
  const char *name;
};

extern boolean bfd_elf32_record_link_assignment
   (bfd *, struct bfd_link_info *, const char *, boolean)  ;
extern boolean bfd_elf64_record_link_assignment
   (bfd *, struct bfd_link_info *, const char *, boolean)  ;
extern struct bfd_link_needed_list *bfd_elf_get_needed_list
   (bfd *, struct bfd_link_info *)  ;
extern boolean bfd_elf_get_bfd_needed_list
   (bfd *, struct bfd_link_needed_list **)  ;
extern boolean bfd_elf32_size_dynamic_sections
   (bfd *, const char *, const char *, boolean, const char *,
	   const char * const *, struct bfd_link_info *, struct sec **,
	   struct bfd_elf_version_tree *)  ;
extern boolean bfd_elf64_size_dynamic_sections
   (bfd *, const char *, const char *, boolean, const char *,
	   const char * const *, struct bfd_link_info *, struct sec **,
	   struct bfd_elf_version_tree *)  ;
extern void bfd_elf_set_dt_needed_name  (bfd *, const char *)  ;
extern const char *bfd_elf_get_dt_soname  (bfd *)  ;

 


extern long bfd_get_elf_phdr_upper_bound  (bfd *abfd)  ;

 






extern int bfd_get_elf_phdrs  (bfd *abfd, void *phdrs)  ;

 

extern struct bfd_link_needed_list *bfd_sunos_get_needed_list
   (bfd *, struct bfd_link_info *)  ;
extern boolean bfd_sunos_record_link_assignment
   (bfd *, struct bfd_link_info *, const char *)  ;
extern boolean bfd_sunos_size_dynamic_sections
   (bfd *, struct bfd_link_info *, struct sec **, struct sec **,
	   struct sec **)  ;

 

extern boolean bfd_i386linux_size_dynamic_sections
   (bfd *, struct bfd_link_info *)  ;
extern boolean bfd_m68klinux_size_dynamic_sections
   (bfd *, struct bfd_link_info *)  ;
extern boolean bfd_sparclinux_size_dynamic_sections
   (bfd *, struct bfd_link_info *)  ;

 

struct _bfd_window_internal;
typedef struct _bfd_window_internal bfd_window_internal;

typedef struct _bfd_window {
   
  void *  data;
  bfd_size_type size;
   





  struct _bfd_window_internal *i;
} bfd_window;

extern void bfd_init_window  (bfd_window *)  ;
extern void bfd_free_window  (bfd_window *)  ;
extern boolean bfd_get_file_window
   (bfd *, file_ptr, bfd_size_type, bfd_window *, boolean)  ;

 

extern boolean bfd_xcoff_link_record_set
   (bfd *, struct bfd_link_info *, struct bfd_link_hash_entry *,
	   bfd_size_type)  ;
extern boolean bfd_xcoff_import_symbol
   (bfd *, struct bfd_link_info *, struct bfd_link_hash_entry *,
	   bfd_vma, const char *, const char *, const char *)  ;
extern boolean bfd_xcoff_export_symbol
   (bfd *, struct bfd_link_info *, struct bfd_link_hash_entry *,
	   boolean)  ;
extern boolean bfd_xcoff_link_count_reloc
   (bfd *, struct bfd_link_info *, const char *)  ;
extern boolean bfd_xcoff_record_link_assignment
   (bfd *, struct bfd_link_info *, const char *)  ;
extern boolean bfd_xcoff_size_dynamic_sections
   (bfd *, struct bfd_link_info *, const char *, const char *,
	   unsigned long, unsigned long, unsigned long, boolean,
	   int, boolean, boolean, struct sec **)  ;

 


struct internal_syment;
union internal_auxent;


extern boolean bfd_coff_get_syment
   (bfd *, struct symbol_cache_entry *, struct internal_syment *)  ;

extern boolean bfd_coff_get_auxent
   (bfd *, struct symbol_cache_entry *, int, union internal_auxent *)  ;

extern boolean bfd_coff_set_symbol_class
   (bfd *, struct symbol_cache_entry *, unsigned int)  ;

 
extern boolean bfd_arm_allocate_interworking_sections
   (struct bfd_link_info *)  ;

extern boolean bfd_arm_process_before_allocation
   (bfd *, struct bfd_link_info *, int)  ;

extern boolean bfd_arm_get_bfd_for_interworking
   (bfd *, struct bfd_link_info *)  ;

 
extern boolean bfd_arm_pe_allocate_interworking_sections
   (struct bfd_link_info *)  ;

extern boolean bfd_arm_pe_process_before_allocation
   (bfd *, struct bfd_link_info *, int)  ;

extern boolean bfd_arm_pe_get_bfd_for_interworking
   (bfd *, struct bfd_link_info *)  ;

 
extern boolean bfd_elf32_arm_allocate_interworking_sections
   (struct bfd_link_info *)  ;

extern boolean bfd_elf32_arm_process_before_allocation
   (bfd *, struct bfd_link_info *, int)  ;

extern boolean bfd_elf32_arm_get_bfd_for_interworking
   (bfd *, struct bfd_link_info *)  ;

 
void 
bfd_init  (void)  ;

bfd *
bfd_openr  (const  char *filename, const  char *target)  ;

bfd *
bfd_fdopenr  (const  char *filename, const  char *target, int fd)  ;

bfd *
bfd_openstreamr  (const char *, const char *, void * )  ;

bfd *
bfd_openw  (const  char *filename, const  char *target)  ;

boolean 
bfd_close  (bfd *abfd)  ;

boolean 
bfd_close_all_done  (bfd *)  ;

bfd *
bfd_create  (const  char *filename, bfd *templ)  ;

boolean 
bfd_make_writable  (bfd *abfd)  ;

boolean 
bfd_make_readable  (bfd *abfd)  ;


  




















































  





































   




struct bfd_comdat_info
{
    
  const char *name;

    



  long symbol;

    

  struct sec *sec;
};

typedef struct sec
{
          


    const  char *name;

          

   int index;

          

    struct sec *next;

          



    flagword flags;



          




          



          







          



          


          


          


          











          





          




          



          










          






          





          





          




         




         





         



         



         




         



         




         





         


         



         



         





         



         

         

         
       unsigned int user_set_vma : 1;

         
       unsigned int reloc_done : 1;

         
       unsigned int linker_mark : 1;

         
       unsigned int gc_mark : 1;

         

         






   bfd_vma vma;

         



   bfd_vma lma;

          



   bfd_size_type _cooked_size;

          



   bfd_size_type _raw_size;

          







   bfd_vma output_offset;

          

   struct sec *output_section;

          


   unsigned int alignment_power;

          


   struct reloc_cache_entry *relocation;

          


   struct reloc_cache_entry **orelocation;

          

   unsigned reloc_count;

          


          

   file_ptr filepos;

          

   file_ptr rel_filepos;

          

   file_ptr line_filepos;

          

   void *  userdata;

          

   unsigned char *contents;

          

   alent *lineno;

          

   unsigned int lineno_count;

          

   struct bfd_comdat_info *comdat;

          


   file_ptr moving_line_filepos;

          

   int target_index;

   void *  used_by_bfd;

          


   struct relent_chain *constructor_chain;

          

   bfd *owner;

          
   struct symbol_cache_entry *symbol;
   struct symbol_cache_entry **symbol_ptr_ptr;

   struct bfd_link_order *link_order_head;
   struct bfd_link_order *link_order_tail;
} asection ;

      









      
extern const asection bfd_abs_section;


      
extern const asection bfd_und_section;


      
extern const asection bfd_com_section;

      
extern const asection bfd_ind_section;



extern const struct symbol_cache_entry * const bfd_abs_symbol;
extern const struct symbol_cache_entry * const bfd_com_symbol;
extern const struct symbol_cache_entry * const bfd_und_symbol;
extern const struct symbol_cache_entry * const bfd_ind_symbol;






asection *
bfd_get_section_by_name  (bfd *abfd, const  char *name)  ;

asection *
bfd_make_section_old_way  (bfd *abfd, const  char *name)  ;

asection *
bfd_make_section_anyway  (bfd *abfd, const  char *name)  ;

asection *
bfd_make_section  (bfd *, const  char *name)  ;

boolean 
bfd_set_section_flags  (bfd *abfd, asection *sec, flagword flags)  ;

void 
bfd_map_over_sections  (bfd *abfd,
    void (*func)(bfd *abfd,
    asection *sect,
    void *  obj),
    void *  obj)  ;

boolean 
bfd_set_section_size  (bfd *abfd, asection *sec, bfd_size_type val)  ;

boolean 
bfd_set_section_contents
  (bfd *abfd,
    asection *section,
    void *  data,
    file_ptr offset,
    bfd_size_type count)  ;

boolean 
bfd_get_section_contents
  (bfd *abfd, asection *section, void *  location,
    file_ptr offset, bfd_size_type count)  ;

boolean 
bfd_copy_private_section_data  (bfd *ibfd, asection *isec, bfd *obfd, asection *osec)  ;




void 
_bfd_strip_section_from_output
  (struct bfd_link_info *info, asection *section)  ;

enum bfd_architecture 
{
  bfd_arch_unknown,     
  bfd_arch_obscure,     
  bfd_arch_m68k,        








  bfd_arch_vax,            
  bfd_arch_i960,        
      
















  bfd_arch_a29k,        
  bfd_arch_sparc,       

  







  


  bfd_arch_mips,        















  bfd_arch_i386,        



  bfd_arch_we32k,       
  bfd_arch_tahoe,       
  bfd_arch_i860,        
  bfd_arch_i370,        
  bfd_arch_romp,        
  bfd_arch_alliant,     
  bfd_arch_convex,      
  bfd_arch_m88k,        
  bfd_arch_pyramid,     
  bfd_arch_h8300,       



  bfd_arch_powerpc,     
  bfd_arch_rs6000,      
  bfd_arch_hppa,        
  bfd_arch_d10v,        



  bfd_arch_d30v,        
  bfd_arch_z8k,         


  bfd_arch_h8500,       
  bfd_arch_sh,          







  bfd_arch_alpha,       



  bfd_arch_arm,         








  bfd_arch_ns32k,       
  bfd_arch_w65,         
  bfd_arch_tic30,       
  bfd_arch_tic54x,      
  bfd_arch_tic80,       
  bfd_arch_v850,        



  bfd_arch_arc,         

  bfd_arch_m32r,        


  bfd_arch_mn10200,     
  bfd_arch_mn10300,     


  bfd_arch_fr30,

  bfd_arch_mcore,
  bfd_arch_pj,
  bfd_arch_avr,         




  bfd_arch_last
  };

typedef struct bfd_arch_info 
{
  int bits_per_word;
  int bits_per_address;
  int bits_per_byte;
  enum bfd_architecture arch;
  unsigned long mach;
  const char *arch_name;
  const char *printable_name;
  unsigned int section_align_power;
   
  boolean the_default; 
  const struct bfd_arch_info * (*compatible)
        (const struct bfd_arch_info *a,
                const struct bfd_arch_info *b)  ;

  boolean (*scan)  (const struct bfd_arch_info *, const char *)  ;

  const struct bfd_arch_info *next;
} bfd_arch_info_type;
const char *
bfd_printable_name  (bfd *abfd)  ;

const bfd_arch_info_type *
bfd_scan_arch  (const char *string)  ;

const char **
bfd_arch_list  (void)  ;

const bfd_arch_info_type *
bfd_arch_get_compatible  (
    const bfd *abfd,
    const bfd *bbfd)  ;

void 
bfd_set_arch_info  (bfd *abfd, const bfd_arch_info_type *arg)  ;

enum bfd_architecture 
bfd_get_arch  (bfd *abfd)  ;

unsigned long 
bfd_get_mach  (bfd *abfd)  ;

unsigned int 
bfd_arch_bits_per_byte  (bfd *abfd)  ;

unsigned int 
bfd_arch_bits_per_address  (bfd *abfd)  ;

const bfd_arch_info_type * 
bfd_get_arch_info  (bfd *abfd)  ;

const bfd_arch_info_type *
bfd_lookup_arch
  (enum bfd_architecture
    arch,
    unsigned long machine)  ;

const char *
bfd_printable_arch_mach
  (enum bfd_architecture arch, unsigned long machine)  ;

unsigned int 
bfd_octets_per_byte  (bfd *abfd)  ;

unsigned int 
bfd_arch_mach_octets_per_byte  (enum bfd_architecture arch,
    unsigned long machine)  ;

typedef enum bfd_reloc_status
{
         
  bfd_reloc_ok,

         
  bfd_reloc_overflow,

         
  bfd_reloc_outofrange,

         
  bfd_reloc_continue,

         
  bfd_reloc_notsupported,

         
  bfd_reloc_other,

         
  bfd_reloc_undefined,

         



  bfd_reloc_dangerous
 }
 bfd_reloc_status_type;


typedef struct reloc_cache_entry
{
         
  struct symbol_cache_entry **sym_ptr_ptr;

         
  bfd_size_type address;

         
  bfd_vma addend;

         
  reloc_howto_type *howto;

} arelent;
enum complain_overflow
{
         
  complain_overflow_dont,

         

  complain_overflow_bitfield,

         

  complain_overflow_signed,

         

  complain_overflow_unsigned
};

struct reloc_howto_struct
{
         





  unsigned int type;

         

  unsigned int rightshift;

         


  int size;

         

  unsigned int bitsize;

         



  boolean pc_relative;

         

  unsigned int bitpos;

         

  enum complain_overflow complain_on_overflow;

         



  bfd_reloc_status_type (*special_function)
                                    (bfd *abfd,
                                            arelent *reloc_entry,
                                            struct symbol_cache_entry *symbol,
                                            void *  data,
                                            asection *input_section,
                                            bfd *output_bfd,
                                            char **error_message)  ;

         
  char *name;

         














  boolean partial_inplace;

         






  bfd_vma src_mask;

         



  bfd_vma dst_mask;

         





  boolean pcrel_offset;

};








# 1683 "bfd.h"
unsigned int 
bfd_get_reloc_size   (reloc_howto_type *)  ;

typedef struct relent_chain {
  arelent relent;
  struct   relent_chain *next;
} arelent_chain;
bfd_reloc_status_type

bfd_check_overflow
  (enum complain_overflow how,
    unsigned int bitsize,
    unsigned int rightshift,
    unsigned int addrsize,
    bfd_vma relocation)  ;

bfd_reloc_status_type

bfd_perform_relocation
  (bfd *abfd,
    arelent *reloc_entry,
    void *  data,
    asection *input_section,
    bfd *output_bfd,
    char **error_message)  ;

bfd_reloc_status_type

bfd_install_relocation
  (bfd *abfd,
    arelent *reloc_entry,
    void *  data, bfd_vma data_start,
    asection *input_section,
    char **error_message)  ;

enum bfd_reloc_code_real {
  _dummy_first_bfd_reloc_code_real,


 
  BFD_RELOC_64,
  BFD_RELOC_32,
  BFD_RELOC_26,
  BFD_RELOC_24,
  BFD_RELOC_16,
  BFD_RELOC_14,
  BFD_RELOC_8,

 




  BFD_RELOC_64_PCREL,
  BFD_RELOC_32_PCREL,
  BFD_RELOC_24_PCREL,
  BFD_RELOC_16_PCREL,
  BFD_RELOC_12_PCREL,
  BFD_RELOC_8_PCREL,

 
  BFD_RELOC_32_GOT_PCREL,
  BFD_RELOC_16_GOT_PCREL,
  BFD_RELOC_8_GOT_PCREL,
  BFD_RELOC_32_GOTOFF,
  BFD_RELOC_16_GOTOFF,
  BFD_RELOC_LO16_GOTOFF,
  BFD_RELOC_HI16_GOTOFF,
  BFD_RELOC_HI16_S_GOTOFF,
  BFD_RELOC_8_GOTOFF,
  BFD_RELOC_32_PLT_PCREL,
  BFD_RELOC_24_PLT_PCREL,
  BFD_RELOC_16_PLT_PCREL,
  BFD_RELOC_8_PLT_PCREL,
  BFD_RELOC_32_PLTOFF,
  BFD_RELOC_16_PLTOFF,
  BFD_RELOC_LO16_PLTOFF,
  BFD_RELOC_HI16_PLTOFF,
  BFD_RELOC_HI16_S_PLTOFF,
  BFD_RELOC_8_PLTOFF,

 
  BFD_RELOC_68K_GLOB_DAT,
  BFD_RELOC_68K_JMP_SLOT,
  BFD_RELOC_68K_RELATIVE,

 
  BFD_RELOC_32_BASEREL,
  BFD_RELOC_16_BASEREL,
  BFD_RELOC_LO16_BASEREL,
  BFD_RELOC_HI16_BASEREL,
  BFD_RELOC_HI16_S_BASEREL,
  BFD_RELOC_8_BASEREL,
  BFD_RELOC_RVA,

 
  BFD_RELOC_8_FFnn,

 





  BFD_RELOC_32_PCREL_S2,
  BFD_RELOC_16_PCREL_S2,
  BFD_RELOC_23_PCREL_S2,

 

  BFD_RELOC_HI22,
  BFD_RELOC_LO10,

 



  BFD_RELOC_GPREL16,
  BFD_RELOC_GPREL32,

 
  BFD_RELOC_I960_CALLJ,

 

  BFD_RELOC_NONE,
  BFD_RELOC_SPARC_WDISP22,
  BFD_RELOC_SPARC22,
  BFD_RELOC_SPARC13,
  BFD_RELOC_SPARC_GOT10,
  BFD_RELOC_SPARC_GOT13,
  BFD_RELOC_SPARC_GOT22,
  BFD_RELOC_SPARC_PC10,
  BFD_RELOC_SPARC_PC22,
  BFD_RELOC_SPARC_WPLT30,
  BFD_RELOC_SPARC_COPY,
  BFD_RELOC_SPARC_GLOB_DAT,
  BFD_RELOC_SPARC_JMP_SLOT,
  BFD_RELOC_SPARC_RELATIVE,
  BFD_RELOC_SPARC_UA32,

 
  BFD_RELOC_SPARC_BASE13,
  BFD_RELOC_SPARC_BASE22,

 

  BFD_RELOC_SPARC_10,
  BFD_RELOC_SPARC_11,
  BFD_RELOC_SPARC_OLO10,
  BFD_RELOC_SPARC_HH22,
  BFD_RELOC_SPARC_HM10,
  BFD_RELOC_SPARC_LM22,
  BFD_RELOC_SPARC_PC_HH22,
  BFD_RELOC_SPARC_PC_HM10,
  BFD_RELOC_SPARC_PC_LM22,
  BFD_RELOC_SPARC_WDISP16,
  BFD_RELOC_SPARC_WDISP19,
  BFD_RELOC_SPARC_7,
  BFD_RELOC_SPARC_6,
  BFD_RELOC_SPARC_5,

  BFD_RELOC_SPARC_PLT64,
  BFD_RELOC_SPARC_HIX22,
  BFD_RELOC_SPARC_LOX10,
  BFD_RELOC_SPARC_H44,
  BFD_RELOC_SPARC_M44,
  BFD_RELOC_SPARC_L44,
  BFD_RELOC_SPARC_REGISTER,

 
  BFD_RELOC_SPARC_REV32,

 





  BFD_RELOC_ALPHA_GPDISP_HI16,

 



  BFD_RELOC_ALPHA_GPDISP_LO16,

 


  BFD_RELOC_ALPHA_GPDISP,

 
























  BFD_RELOC_ALPHA_LITERAL,
  BFD_RELOC_ALPHA_ELF_LITERAL,
  BFD_RELOC_ALPHA_LITUSE,

 


  BFD_RELOC_ALPHA_USER_LITERAL,
  BFD_RELOC_ALPHA_USER_LITUSE_BASE,
  BFD_RELOC_ALPHA_USER_LITUSE_BYTOFF,
  BFD_RELOC_ALPHA_USER_LITUSE_JSR,
  BFD_RELOC_ALPHA_USER_GPDISP,
  BFD_RELOC_ALPHA_USER_GPRELHIGH,
  BFD_RELOC_ALPHA_USER_GPRELLOW,

 


  BFD_RELOC_ALPHA_HINT,

 

  BFD_RELOC_ALPHA_LINKAGE,

 

  BFD_RELOC_ALPHA_CODEADDR,

 

  BFD_RELOC_MIPS_JMP,

 
  BFD_RELOC_MIPS16_JMP,

 
  BFD_RELOC_MIPS16_GPREL,

 
  BFD_RELOC_HI16,

 



  BFD_RELOC_HI16_S,

 
  BFD_RELOC_LO16,

 
  BFD_RELOC_PCREL_HI16_S,

 
  BFD_RELOC_PCREL_LO16,

 


 
  BFD_RELOC_MIPS_LITERAL,

 
  BFD_RELOC_MIPS_GOT16,
  BFD_RELOC_MIPS_CALL16,

  BFD_RELOC_MIPS_GOT_HI16,
  BFD_RELOC_MIPS_GOT_LO16,
  BFD_RELOC_MIPS_CALL_HI16,
  BFD_RELOC_MIPS_CALL_LO16,
  BFD_RELOC_MIPS_SUB,
  BFD_RELOC_MIPS_GOT_PAGE,
  BFD_RELOC_MIPS_GOT_OFST,
  BFD_RELOC_MIPS_GOT_DISP,


 
  BFD_RELOC_386_GOT32,
  BFD_RELOC_386_PLT32,
  BFD_RELOC_386_COPY,
  BFD_RELOC_386_GLOB_DAT,
  BFD_RELOC_386_JUMP_SLOT,
  BFD_RELOC_386_RELATIVE,
  BFD_RELOC_386_GOTOFF,
  BFD_RELOC_386_GOTPC,

 
  BFD_RELOC_NS32K_IMM_8,
  BFD_RELOC_NS32K_IMM_16,
  BFD_RELOC_NS32K_IMM_32,
  BFD_RELOC_NS32K_IMM_8_PCREL,
  BFD_RELOC_NS32K_IMM_16_PCREL,
  BFD_RELOC_NS32K_IMM_32_PCREL,
  BFD_RELOC_NS32K_DISP_8,
  BFD_RELOC_NS32K_DISP_16,
  BFD_RELOC_NS32K_DISP_32,
  BFD_RELOC_NS32K_DISP_8_PCREL,
  BFD_RELOC_NS32K_DISP_16_PCREL,
  BFD_RELOC_NS32K_DISP_32_PCREL,

 
  BFD_RELOC_PJ_CODE_HI16,
  BFD_RELOC_PJ_CODE_LO16,
  BFD_RELOC_PJ_CODE_DIR16,
  BFD_RELOC_PJ_CODE_DIR32,
  BFD_RELOC_PJ_CODE_REL16,
  BFD_RELOC_PJ_CODE_REL32,

 
  BFD_RELOC_PPC_B26,
  BFD_RELOC_PPC_BA26,
  BFD_RELOC_PPC_TOC16,
  BFD_RELOC_PPC_B16,
  BFD_RELOC_PPC_B16_BRTAKEN,
  BFD_RELOC_PPC_B16_BRNTAKEN,
  BFD_RELOC_PPC_BA16,
  BFD_RELOC_PPC_BA16_BRTAKEN,
  BFD_RELOC_PPC_BA16_BRNTAKEN,
  BFD_RELOC_PPC_COPY,
  BFD_RELOC_PPC_GLOB_DAT,
  BFD_RELOC_PPC_JMP_SLOT,
  BFD_RELOC_PPC_RELATIVE,
  BFD_RELOC_PPC_LOCAL24PC,
  BFD_RELOC_PPC_EMB_NADDR32,
  BFD_RELOC_PPC_EMB_NADDR16,
  BFD_RELOC_PPC_EMB_NADDR16_LO,
  BFD_RELOC_PPC_EMB_NADDR16_HI,
  BFD_RELOC_PPC_EMB_NADDR16_HA,
  BFD_RELOC_PPC_EMB_SDAI16,
  BFD_RELOC_PPC_EMB_SDA2I16,
  BFD_RELOC_PPC_EMB_SDA2REL,
  BFD_RELOC_PPC_EMB_SDA21,
  BFD_RELOC_PPC_EMB_MRKREF,
  BFD_RELOC_PPC_EMB_RELSEC16,
  BFD_RELOC_PPC_EMB_RELST_LO,
  BFD_RELOC_PPC_EMB_RELST_HI,
  BFD_RELOC_PPC_EMB_RELST_HA,
  BFD_RELOC_PPC_EMB_BIT_FLD,
  BFD_RELOC_PPC_EMB_RELSDA,

 
  BFD_RELOC_I370_D12,

 


  BFD_RELOC_CTOR,

 

  BFD_RELOC_ARM_PCREL_BRANCH,

 


  BFD_RELOC_ARM_PCREL_BLX,

 


  BFD_RELOC_THUMB_PCREL_BLX,

 

  BFD_RELOC_ARM_IMMEDIATE,
  BFD_RELOC_ARM_ADRL_IMMEDIATE,
  BFD_RELOC_ARM_OFFSET_IMM,
  BFD_RELOC_ARM_SHIFT_IMM,
  BFD_RELOC_ARM_SWI,
  BFD_RELOC_ARM_MULTI,
  BFD_RELOC_ARM_CP_OFF_IMM,
  BFD_RELOC_ARM_ADR_IMM,
  BFD_RELOC_ARM_LDR_IMM,
  BFD_RELOC_ARM_LITERAL,
  BFD_RELOC_ARM_IN_POOL,
  BFD_RELOC_ARM_OFFSET_IMM8,
  BFD_RELOC_ARM_HWLITERAL,
  BFD_RELOC_ARM_THUMB_ADD,
  BFD_RELOC_ARM_THUMB_IMM,
  BFD_RELOC_ARM_THUMB_SHIFT,
  BFD_RELOC_ARM_THUMB_OFFSET,
  BFD_RELOC_ARM_GOT12,
  BFD_RELOC_ARM_GOT32,
  BFD_RELOC_ARM_JUMP_SLOT,
  BFD_RELOC_ARM_COPY,
  BFD_RELOC_ARM_GLOB_DAT,
  BFD_RELOC_ARM_PLT32,
  BFD_RELOC_ARM_RELATIVE,
  BFD_RELOC_ARM_GOTOFF,
  BFD_RELOC_ARM_GOTPC,

 
  BFD_RELOC_SH_PCDISP8BY2,
  BFD_RELOC_SH_PCDISP12BY2,
  BFD_RELOC_SH_IMM4,
  BFD_RELOC_SH_IMM4BY2,
  BFD_RELOC_SH_IMM4BY4,
  BFD_RELOC_SH_IMM8,
  BFD_RELOC_SH_IMM8BY2,
  BFD_RELOC_SH_IMM8BY4,
  BFD_RELOC_SH_PCRELIMM8BY2,
  BFD_RELOC_SH_PCRELIMM8BY4,
  BFD_RELOC_SH_SWITCH16,
  BFD_RELOC_SH_SWITCH32,
  BFD_RELOC_SH_USES,
  BFD_RELOC_SH_COUNT,
  BFD_RELOC_SH_ALIGN,
  BFD_RELOC_SH_CODE,
  BFD_RELOC_SH_DATA,
  BFD_RELOC_SH_LABEL,
  BFD_RELOC_SH_LOOP_START,
  BFD_RELOC_SH_LOOP_END,

 

  BFD_RELOC_THUMB_PCREL_BRANCH9,
  BFD_RELOC_THUMB_PCREL_BRANCH12,
  BFD_RELOC_THUMB_PCREL_BRANCH23,

 



  BFD_RELOC_ARC_B22_PCREL,

 


  BFD_RELOC_ARC_B26,

 


  BFD_RELOC_D10V_10_PCREL_R,

 




  BFD_RELOC_D10V_10_PCREL_L,

 

  BFD_RELOC_D10V_18,

 

  BFD_RELOC_D10V_18_PCREL,

 

  BFD_RELOC_D30V_6,

 

  BFD_RELOC_D30V_9_PCREL,

 



  BFD_RELOC_D30V_9_PCREL_R,

 

  BFD_RELOC_D30V_15,

 

  BFD_RELOC_D30V_15_PCREL,

 



  BFD_RELOC_D30V_15_PCREL_R,

 

  BFD_RELOC_D30V_21,

 

  BFD_RELOC_D30V_21_PCREL,

 



  BFD_RELOC_D30V_21_PCREL_R,

 
  BFD_RELOC_D30V_32,

 
  BFD_RELOC_D30V_32_PCREL,

 

  BFD_RELOC_M32R_24,

 
  BFD_RELOC_M32R_10_PCREL,

 
  BFD_RELOC_M32R_18_PCREL,

 
  BFD_RELOC_M32R_26_PCREL,

 

  BFD_RELOC_M32R_HI16_ULO,

 

  BFD_RELOC_M32R_HI16_SLO,

 
  BFD_RELOC_M32R_LO16,

 

  BFD_RELOC_M32R_SDA16,

 
  BFD_RELOC_V850_9_PCREL,

 
  BFD_RELOC_V850_22_PCREL,

 
  BFD_RELOC_V850_SDA_16_16_OFFSET,

 

  BFD_RELOC_V850_SDA_15_16_OFFSET,

 
  BFD_RELOC_V850_ZDA_16_16_OFFSET,

 

  BFD_RELOC_V850_ZDA_15_16_OFFSET,

 

  BFD_RELOC_V850_TDA_6_8_OFFSET,

 

  BFD_RELOC_V850_TDA_7_8_OFFSET,

 
  BFD_RELOC_V850_TDA_7_7_OFFSET,

 
  BFD_RELOC_V850_TDA_16_16_OFFSET,

 

  BFD_RELOC_V850_TDA_4_5_OFFSET,

 
  BFD_RELOC_V850_TDA_4_4_OFFSET,

 

  BFD_RELOC_V850_SDA_16_16_SPLIT_OFFSET,

 

  BFD_RELOC_V850_ZDA_16_16_SPLIT_OFFSET,

 
  BFD_RELOC_V850_CALLT_6_7_OFFSET,

 
  BFD_RELOC_V850_CALLT_16_16_OFFSET,


 

  BFD_RELOC_MN10300_32_PCREL,

 

  BFD_RELOC_MN10300_16_PCREL,

 


  BFD_RELOC_TIC30_LDP,

 


  BFD_RELOC_TIC54X_PARTLS7,

 


  BFD_RELOC_TIC54X_PARTMS9,

 
  BFD_RELOC_TIC54X_23,

 


  BFD_RELOC_TIC54X_16_OF_23,

 


  BFD_RELOC_TIC54X_MS7_OF_23,

 
  BFD_RELOC_FR30_48,

 

  BFD_RELOC_FR30_20,

 

  BFD_RELOC_FR30_6_IN_4,

 

  BFD_RELOC_FR30_8_IN_8,

 

  BFD_RELOC_FR30_9_IN_8,

 

  BFD_RELOC_FR30_10_IN_8,

 

  BFD_RELOC_FR30_9_PCREL,

 

  BFD_RELOC_FR30_12_PCREL,

 
  BFD_RELOC_MCORE_PCREL_IMM8BY4,
  BFD_RELOC_MCORE_PCREL_IMM11BY2,
  BFD_RELOC_MCORE_PCREL_IMM4BY2,
  BFD_RELOC_MCORE_PCREL_32,
  BFD_RELOC_MCORE_PCREL_JSR_IMM11BY2,
  BFD_RELOC_MCORE_RVA,

 

  BFD_RELOC_AVR_7_PCREL,

 

  BFD_RELOC_AVR_13_PCREL,

 

  BFD_RELOC_AVR_16_PM,

 

  BFD_RELOC_AVR_LO8_LDI,

 

  BFD_RELOC_AVR_HI8_LDI,

 

  BFD_RELOC_AVR_HH8_LDI,

 

  BFD_RELOC_AVR_LO8_LDI_NEG,

 


  BFD_RELOC_AVR_HI8_LDI_NEG,

 


  BFD_RELOC_AVR_HH8_LDI_NEG,

 

  BFD_RELOC_AVR_LO8_LDI_PM,

 

  BFD_RELOC_AVR_HI8_LDI_PM,

 

  BFD_RELOC_AVR_HH8_LDI_PM,

 

  BFD_RELOC_AVR_LO8_LDI_PM_NEG,

 


  BFD_RELOC_AVR_HI8_LDI_PM_NEG,

 


  BFD_RELOC_AVR_HH8_LDI_PM_NEG,

 

  BFD_RELOC_AVR_CALL,

 
















  BFD_RELOC_VTABLE_INHERIT,
  BFD_RELOC_VTABLE_ENTRY,
  BFD_RELOC_UNUSED };
typedef enum bfd_reloc_code_real bfd_reloc_code_real_type;
reloc_howto_type *

bfd_reloc_type_lookup   (bfd *abfd, bfd_reloc_code_real_type code)  ;

const char *
bfd_get_reloc_code_name   (bfd_reloc_code_real_type code)  ;


typedef struct symbol_cache_entry
{
         









  struct _bfd *the_bfd;   

         

  const  char *name;

         


  symvalue value;

         



         



         



         



         



         



         



         



         



         



         



         


         







         


         





         



         



         


         



         




  flagword flags;

         


  struct sec *section;

         
  union
    {
      void *  p;
      bfd_vma i;
    } udata;

} asymbol;


boolean 
bfd_is_local_label  (bfd *abfd, asymbol *sym)  ;

boolean 
bfd_is_local_label_name  (bfd *abfd, const char *name)  ;






boolean 
bfd_set_symtab   (bfd *abfd, asymbol **location, unsigned int count)  ;

void 
bfd_print_symbol_vandf  (void *  file, asymbol *symbol)  ;





int 
bfd_decode_symclass  (asymbol *symbol)  ;

boolean 
bfd_is_undefined_symclass   (int symclass)  ;

void 
bfd_symbol_info  (asymbol *symbol, symbol_info *ret)  ;

boolean 
bfd_copy_private_symbol_data  (bfd *ibfd, asymbol *isym, bfd *obfd, asymbol *osym)  ;




struct _bfd 
{
      
    const  char *filename;                

      
    const struct bfd_target *xvec;

      






    void *  iostream;

      


    boolean cacheable;

      



    boolean target_defaulted;

      


    struct _bfd *lru_prev, *lru_next;

      


    file_ptr where;              

      

    boolean opened_once;

      


    boolean mtime_set;

      

    long mtime;          

      

    int ifd;

      

    bfd_format format;

      

    enum bfd_direction {no_direction = 0,
                        read_direction = 1,
                        write_direction = 2,
                        both_direction = 3} direction;

      

    flagword flags;              

      



    file_ptr origin;             

      

    boolean output_has_begun;

      
    struct sec  *sections;

      
    unsigned int section_count;

      

    bfd_vma start_address;

      
    unsigned int symcount;

      
    struct symbol_cache_entry  **outsymbols;             

      
    const struct bfd_arch_info *arch_info;

      
    void *  arelt_data;              
    struct _bfd *my_archive;       
    struct _bfd *next;             
    struct _bfd *archive_head;     
    boolean has_armap;           

      
    struct _bfd *link_next;

      

    int archive_pass;

      

    union 
      {
      struct aout_data_struct *aout_data;
      struct artdata *aout_ar_data;
      struct _oasys_data *oasys_obj_data;
      struct _oasys_ar_data *oasys_ar_data;
      struct coff_tdata *coff_obj_data;
      struct pe_tdata *pe_obj_data;
      struct xcoff_tdata *xcoff_obj_data;
      struct ecoff_tdata *ecoff_obj_data;
      struct ieee_data_struct *ieee_data;
      struct ieee_ar_data_struct *ieee_ar_data;
      struct srec_data_struct *srec_data;
      struct ihex_data_struct *ihex_data;
      struct tekhex_data_struct *tekhex_data;
      struct elf_obj_tdata *elf_obj_data;
      struct nlm_obj_tdata *nlm_obj_data;
      struct bout_data_struct *bout_data;
      struct sun_core_struct *sun_core_data;
      struct sco5_core_struct *sco5_core_data;
      struct trad_core_struct *trad_core_data;
      struct som_data_struct *som_data;
      struct hpux_core_struct *hpux_core_data;
      struct hppabsd_core_struct *hppabsd_core_data;
      struct sgi_core_struct *sgi_core_data;
      struct lynx_core_struct *lynx_core_data;
      struct osf_core_struct *osf_core_data;
      struct cisco_core_struct *cisco_core_data;
      struct versados_data_struct *versados_data;
      struct netbsd_core_struct *netbsd_core_data;
      void *  any;
      } tdata;
  
      
    void *  usrdata;

    


    void *  memory;
};

typedef enum bfd_error
{
  bfd_error_no_error = 0,
  bfd_error_system_call,
  bfd_error_invalid_target,
  bfd_error_wrong_format,
  bfd_error_invalid_operation,
  bfd_error_no_memory,
  bfd_error_no_symbols,
  bfd_error_no_armap,
  bfd_error_no_more_archived_files,
  bfd_error_malformed_archive,
  bfd_error_file_not_recognized,
  bfd_error_file_ambiguously_recognized,
  bfd_error_no_contents,
  bfd_error_nonrepresentable_section,
  bfd_error_no_debug_section,
  bfd_error_bad_value,
  bfd_error_file_truncated,
  bfd_error_file_too_big,
  bfd_error_invalid_error_code
} bfd_error_type;

bfd_error_type 
bfd_get_error   (void)  ;

void 
bfd_set_error   (bfd_error_type error_tag)  ;

const  char *
bfd_errmsg   (bfd_error_type error_tag)  ;

void 
bfd_perror   (const  char *message)  ;

typedef void (*bfd_error_handler_type)  (const char *, ...)  ;

bfd_error_handler_type 
bfd_set_error_handler   (bfd_error_handler_type)  ;

void 
bfd_set_error_program_name   (const char *)  ;

bfd_error_handler_type 
bfd_get_error_handler   (void)  ;

long 
bfd_get_reloc_upper_bound  (bfd *abfd, asection *sect)  ;

long 
bfd_canonicalize_reloc
  (bfd *abfd,
    asection *sec,
    arelent **loc,
    asymbol **syms)  ;

void 
bfd_set_reloc
  (bfd *abfd, asection *sec, arelent **rel, unsigned int count)
    
      ;

boolean 
bfd_set_file_flags  (bfd *abfd, flagword flags)  ;

boolean 
bfd_set_start_address  (bfd *abfd, bfd_vma vma)  ;

long 
bfd_get_mtime  (bfd *abfd)  ;

long 
bfd_get_size  (bfd *abfd)  ;

int 
bfd_get_gp_size  (bfd *abfd)  ;

void 
bfd_set_gp_size  (bfd *abfd, int i)  ;

bfd_vma 
bfd_scan_vma  (const  char *string, const  char **end, int base)  ;

boolean 
bfd_copy_private_bfd_data  (bfd *ibfd, bfd *obfd)  ;




boolean 
bfd_merge_private_bfd_data  (bfd *ibfd, bfd *obfd)  ;




boolean 
bfd_set_private_flags  (bfd *abfd, flagword flags)  ;










         




















































extern bfd_byte *bfd_get_relocated_section_contents
        (bfd *, struct bfd_link_info *,
                 struct bfd_link_order *, bfd_byte *,
                 boolean, asymbol **)  ;

symindex 
bfd_get_next_mapent  (bfd *abfd, symindex previous, carsym **sym)  ;

boolean 
bfd_set_archive_head  (bfd *output, bfd *new_head)  ;

bfd *
bfd_openr_next_archived_file  (bfd *archive, bfd *previous)  ;

const  char *
bfd_core_file_failing_command  (bfd *abfd)  ;

int 
bfd_core_file_failing_signal  (bfd *abfd)  ;

boolean 
core_file_matches_executable_p
  (bfd *core_bfd, bfd *exec_bfd)  ;





















enum bfd_flavour {
  bfd_target_unknown_flavour,
  bfd_target_aout_flavour,
  bfd_target_coff_flavour,
  bfd_target_ecoff_flavour,
  bfd_target_elf_flavour,
  bfd_target_ieee_flavour,
  bfd_target_nlm_flavour,
  bfd_target_oasys_flavour,
  bfd_target_tekhex_flavour,
  bfd_target_srec_flavour,
  bfd_target_ihex_flavour,
  bfd_target_som_flavour,
  bfd_target_os9k_flavour,
  bfd_target_versados_flavour,
  bfd_target_msdos_flavour,
  bfd_target_ovax_flavour,
  bfd_target_evax_flavour
};

enum bfd_endian { BFD_ENDIAN_BIG, BFD_ENDIAN_LITTLE, BFD_ENDIAN_UNKNOWN };

  
typedef struct bfd_link_info _bfd_link_info;

typedef struct bfd_target
{
  char *name;
  enum bfd_flavour flavour;
  enum bfd_endian byteorder;
  enum bfd_endian header_byteorder;
  flagword object_flags;       
  flagword section_flags;
  char symbol_leading_char;
  char ar_pad_char;            
  unsigned short ar_max_namelen;
  bfd_vma      (*bfd_getx64)  (const bfd_byte *)  ;
  bfd_signed_vma (*bfd_getx_signed_64)  (const bfd_byte *)  ;
  void         (*bfd_putx64)  (bfd_vma, bfd_byte *)  ;
  bfd_vma      (*bfd_getx32)  (const bfd_byte *)  ;
  bfd_signed_vma (*bfd_getx_signed_32)  (const bfd_byte *)  ;
  void         (*bfd_putx32)  (bfd_vma, bfd_byte *)  ;
  bfd_vma      (*bfd_getx16)  (const bfd_byte *)  ;
  bfd_signed_vma (*bfd_getx_signed_16)  (const bfd_byte *)  ;
  void         (*bfd_putx16)  (bfd_vma, bfd_byte *)  ;
  bfd_vma      (*bfd_h_getx64)  (const bfd_byte *)  ;
  bfd_signed_vma (*bfd_h_getx_signed_64)  (const bfd_byte *)  ;
  void         (*bfd_h_putx64)  (bfd_vma, bfd_byte *)  ;
  bfd_vma      (*bfd_h_getx32)  (const bfd_byte *)  ;
  bfd_signed_vma (*bfd_h_getx_signed_32)  (const bfd_byte *)  ;
  void         (*bfd_h_putx32)  (bfd_vma, bfd_byte *)  ;
  bfd_vma      (*bfd_h_getx16)  (const bfd_byte *)  ;
  bfd_signed_vma (*bfd_h_getx_signed_16)  (const bfd_byte *)  ;
  void         (*bfd_h_putx16)  (bfd_vma, bfd_byte *)  ;
  const struct bfd_target *(*_bfd_check_format[bfd_type_end])  (bfd *)  ;
  boolean             (*_bfd_set_format[bfd_type_end])  (bfd *)  ;
  boolean             (*_bfd_write_contents[bfd_type_end])  (bfd *)  ;

    







    
  boolean       (*_close_and_cleanup)  (bfd *)  ;
    
  boolean (*_bfd_free_cached_info)  (bfd *)  ;
    
  boolean       (*_new_section_hook)  (bfd *, sec_ptr)  ;
    
  boolean       (*_bfd_get_section_contents)  (bfd *, sec_ptr, void * , 
                                            file_ptr, bfd_size_type)  ;
  boolean       (*_bfd_get_section_contents_in_window)
                           (bfd *, sec_ptr, bfd_window *,
                                   file_ptr, bfd_size_type)  ;

    

# 3064 "bfd.h"
  boolean       (*_bfd_copy_private_bfd_data)  (bfd *, bfd *)  ;
    

  boolean       (*_bfd_merge_private_bfd_data)  (bfd *, bfd *)  ;
    

  boolean       (*_bfd_copy_private_section_data)  (bfd *, sec_ptr,
                                                       bfd *, sec_ptr)  ;
    

  boolean       (*_bfd_copy_private_symbol_data)  (bfd *, asymbol *,
                                                          bfd *, asymbol *)  ;
    
  boolean       (*_bfd_set_private_flags)  (bfd *, flagword)  ;

    
  boolean       (*_bfd_print_private_bfd_data)  (bfd *, void * )  ;

    




  char *   (*_core_file_failing_command)  (bfd *)  ;
  int      (*_core_file_failing_signal)  (bfd *)  ;
  boolean  (*_core_file_matches_executable_p)  (bfd *, bfd *)  ;

    

# 3103 "bfd.h"
  boolean  (*_bfd_slurp_armap)  (bfd *)  ;
  boolean  (*_bfd_slurp_extended_name_table)  (bfd *)  ;
  boolean  (*_bfd_construct_extended_name_table)
              (bfd *, char **, bfd_size_type *, const char **)  ;
  void     (*_bfd_truncate_arname)  (bfd *, const  char *, char *)  ;
  boolean  (*write_armap)  (bfd *arch, 
                              unsigned int elength,
                              struct orl *map,
                              unsigned int orl_count, 
                              int stridx)  ;
  void *  (*_bfd_read_ar_hdr_fn)  (bfd *)  ;
  bfd *    (*openr_next_archived_file)  (bfd *arch, bfd *prev)  ;

  bfd *    (*_bfd_get_elt_at_index)  (bfd *, symindex)  ;
  int      (*_bfd_stat_arch_elt)  (bfd *, struct stat *)  ;
  boolean  (*_bfd_update_armap_timestamp)  (bfd *)  ;

    

# 3133 "bfd.h"
  long  (*_bfd_get_symtab_upper_bound)  (bfd *)  ;
  long  (*_bfd_canonicalize_symtab)  (bfd *,
                                             struct symbol_cache_entry **)  ;
  struct symbol_cache_entry  *
                (*_bfd_make_empty_symbol)  (bfd *)  ;
  void          (*_bfd_print_symbol)  (bfd *, void * ,
                                      struct symbol_cache_entry *,
                                      bfd_print_symbol_type)  ;

  void          (*_bfd_get_symbol_info)  (bfd *,
                                      struct symbol_cache_entry *,
                                      symbol_info *)  ;

  boolean       (*_bfd_is_local_label_name)  (bfd *, const char *)  ;

  alent *    (*_get_lineno)  (bfd *, struct symbol_cache_entry *)  ;
  boolean    (*_bfd_find_nearest_line)  (bfd *abfd,
                    struct sec *section, struct symbol_cache_entry **symbols,
                    bfd_vma offset, const  char **file, const  char **func,
                    unsigned int *line)  ;
   


  asymbol *  (*_bfd_make_debug_symbol)  (
       bfd *abfd,
       void *ptr,
       unsigned long size)  ;


  long  (*_read_minisymbols)  (bfd *, boolean, void *  *,
                                      unsigned int *)  ;


  asymbol *(*_minisymbol_to_symbol)  (bfd *, boolean, const void * ,
                                             asymbol *)  ;

    




  long  (*_get_reloc_upper_bound)  (bfd *, sec_ptr)  ;
  long  (*_bfd_canonicalize_reloc)  (bfd *, sec_ptr, arelent **,
                                            struct symbol_cache_entry **)  ;
    
  reloc_howto_type *
       (*reloc_type_lookup)  (bfd *abfd,
                                     bfd_reloc_code_real_type code)  ;

    



  boolean    (*_bfd_set_arch_mach)  (bfd *, enum bfd_architecture,
                    unsigned long)  ;
  boolean       (*_bfd_set_section_contents)  (bfd *, sec_ptr, void * ,
                                            file_ptr, bfd_size_type)  ;

    

# 3201 "bfd.h"
  int        (*_bfd_sizeof_headers)  (bfd *, boolean)  ;
  bfd_byte * (*_bfd_get_relocated_section_contents)  (bfd *,
                    struct bfd_link_info *, struct bfd_link_order *,
                    bfd_byte *data, boolean relocateable,
                    struct symbol_cache_entry **)  ;

  boolean    (*_bfd_relax_section)  (bfd *, struct sec *,
                    struct bfd_link_info *, boolean *again)  ;

    

  struct bfd_link_hash_table *(*_bfd_link_hash_table_create)  (bfd *)  ;

    
  boolean (*_bfd_link_add_symbols)  (bfd *, struct bfd_link_info *)  ;

    

  boolean (*_bfd_final_link)  (bfd *, struct bfd_link_info *)  ;

    
  boolean (*_bfd_link_split_section)  (bfd *, struct sec *)  ;

    
  boolean (*_bfd_gc_sections)  (bfd *, struct bfd_link_info *)  ;

    





    
  long  (*_bfd_get_dynamic_symtab_upper_bound)  (bfd *)  ;
    
  long  (*_bfd_canonicalize_dynamic_symtab)
     (bfd *, struct symbol_cache_entry **)  ;
    
  long  (*_bfd_get_dynamic_reloc_upper_bound)  (bfd *)  ;
    
  long  (*_bfd_canonicalize_dynamic_reloc)
     (bfd *, arelent **, struct symbol_cache_entry **)  ;

     
 const struct bfd_target * alternative_target;
 
 void *  backend_data;
 
} bfd_target;
boolean 
bfd_set_default_target   (const char *name)  ;

const bfd_target *
bfd_find_target  (const  char *target_name, bfd *abfd)  ;

const char **
bfd_target_list  (void)  ;

const bfd_target * 
bfd_search_for_target   (int (* search_func)(const bfd_target *, void *), void *)  ;

boolean 
bfd_check_format  (bfd *abfd, bfd_format format)  ;

boolean 
bfd_check_format_matches  (bfd *abfd, bfd_format format, char ***matching)  ;

boolean 
bfd_set_format  (bfd *abfd, bfd_format format)  ;

const  char *
bfd_format_string  (bfd_format format)  ;





# 44 "plan9-i386.c" 2

# 1 "sysdep.h" 1
 
























# 1 "config.h" 1
 
 

 
 

 
 

 

 

 


 
 

 
 

 
 

 
 

 
 

 
 

 






 

 


 


 
 

 
 

 
 

 
 

 


 


 
 

 


 
 

 


 
 

 
 

 
 

 
 

 
 

 
 

 


 
 

 
 

 


 


 
 

 


 


 


 


 
 

 
 

 
 

 


 


 


 
 

 
 

 
 

 
 

 


 
 

 


 


 


 
 

 


 


 
 

 
 

 


 
 

 
 

 
 

 
 

 
 

 
 

 
 

 
 

 
 

 
 

 
 

 
 

 
 

 
 

 
 

 
 

 


 
 

# 26 "sysdep.h" 2



# 1 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/include/stddef.h" 1 3






 







 

 




 


 





 


# 61 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/include/stddef.h" 3


 





 


















 





 

 





















typedef long int ptrdiff_t;









 




 

 


































typedef long unsigned int size_t;






















 




 





























 


























typedef int wchar_t;
























typedef unsigned int  wint_t;




 

 

# 317 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/include/stddef.h" 3




 













 







# 29 "sysdep.h" 2



# 1 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/../../../../i386-lucent-plan9/sys-include/stdio.h" 1 3



 


# 1 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/include/stdarg.h" 1 3
 
































































 






typedef void *__gnuc_va_list;



 



 

















void va_end (__gnuc_va_list);		 


 



 












 























 
 













# 175 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/include/stdarg.h" 3


 




 

 

 

typedef __gnuc_va_list va_list;
























# 7 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/../../../../i386-lucent-plan9/sys-include/stdio.h" 2 3

# 1 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/include/stddef.h" 1 3
# 342 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/include/stddef.h" 3

# 8 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/../../../../i386-lucent-plan9/sys-include/stdio.h" 2 3

 



















typedef struct{
	int fd;		 
	char flags;	 
	char state;	 
	char *buf;	 
	char *rp;	 
	char *wp;	 
	char *lp;	 
	size_t bufl;	 
	char unbuf[1];	 
}FILE;
typedef long fpos_t;



 

























extern int remove(const char *);
extern int rename(const char *, const char *);
extern FILE *tmpfile(void);
extern char *tmpnam(char *);
extern int fclose(FILE *);
extern int fflush(FILE *);
extern FILE *fopen(const char *, const char *);
extern FILE *freopen(const char *, const char *, FILE *);
extern void setbuf(FILE *, char *);
extern int setvbuf(FILE *, char *, int, size_t);
extern int fprintf(FILE *, const char *, ...);
extern int fscanf(FILE *, const char *, ...);
extern int printf(const char *, ...);
extern int scanf(const char *, ...);
extern int sprintf(char *, const char *, ...);
extern int sscanf(const char *, const char *, ...);
extern int vfprintf(FILE *, const char *, va_list);
extern int vprintf(const char *, va_list);
extern int vsprintf(char *, const char *, va_list);
extern int vfscanf(FILE *, const char *, va_list);
extern int fgetc(FILE *);
extern char *fgets(char *, int, FILE *);
extern int fputc(int, FILE *);
extern int fputs(const char *, FILE *);
extern int getc(FILE *);

extern int __IO_getc(FILE *f);
extern int getchar(void);

extern char *gets(char *);
extern int putc(int, FILE *);

extern int __IO_putc(int, FILE *);
extern int putchar(int);

extern int puts(const char *);
extern int ungetc(int, FILE *);
extern size_t fread(void *, size_t, size_t, FILE *);
extern size_t fwrite(const void *, size_t, size_t, FILE *);
extern int fgetpos(FILE *, fpos_t *);
extern int fseek(FILE *, long int, int);
extern int fsetpos(FILE *, const fpos_t *);
extern long int ftell(FILE *);
extern void rewind(FILE *);
extern void clearerr(FILE *);
extern int feof(FILE *);
extern int ferror(FILE *);
extern void perror(const char *);
extern FILE _IO_stream[90 ];

extern int fileno(FILE *);
extern FILE* fdopen(int, const char*);
extern char *ctermid(char *);


#pragma lib "/$M/lib/ape/libbsd.a"
extern FILE *popen(char *, char *);
extern int	pclose(FILE *);







# 32 "sysdep.h" 2

# 1 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/../../../../i386-lucent-plan9/sys-include/sys/types.h" 1 3



typedef	unsigned short	ino_t;
typedef	unsigned short	dev_t;
typedef	long		off_t;
typedef unsigned short	mode_t;
typedef short		uid_t;
typedef short		gid_t;
typedef short		nlink_t;
typedef int		pid_t;







typedef long ssize_t;




typedef long time_t;





typedef char * caddr_t;



 
typedef struct fd_set {
	long fds_bits[3];
} fd_set;








# 33 "sysdep.h" 2

# 1 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/../../../../i386-lucent-plan9/sys-include/sys/stat.h" 1 3


#pragma lib "/$M/lib/ape/libap.a"

 


struct	stat {
	dev_t	st_dev;
	ino_t	st_ino;
	mode_t 	st_mode;
	nlink_t	st_nlink;
	uid_t 	st_uid;
	gid_t 	st_gid;
	off_t	st_size;
	time_t	st_atime;
	time_t	st_mtime;
	time_t	st_ctime;
};









































extern mode_t umask(mode_t);
extern int mkdir(const char *, mode_t);
extern int mkfifo(const char *, mode_t);
extern int stat(const char *, struct stat *);
extern int fstat(int, struct stat *);
extern int chmod(const char *, mode_t);


#pragma lib "/$M/lib/ape/libbsd.a"
extern int	lstat(char *, struct stat *);
extern int	symlink(char *, char *);
extern int	readlink(char *, char*, int);







# 34 "sysdep.h" 2


# 1 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/../../../../i386-lucent-plan9/sys-include/errno.h" 1 3


#pragma lib "/$M/lib/ape/libap.a"

extern int errno;










































 



























 






# 36 "sysdep.h" 2


extern int errno;



# 1 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/../../../../i386-lucent-plan9/sys-include/string.h" 1 3


#pragma lib "/$M/lib/ape/libap.a"

# 1 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/include/stddef.h" 1 3
# 342 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/include/stddef.h" 3

# 5 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/../../../../i386-lucent-plan9/sys-include/string.h" 2 3






extern void *memcpy(void *, const void *, size_t);
extern void *memmove(void *, const void *, size_t);
extern char *strcpy(char *, const char *);
extern char *strncpy(char *, const char *, size_t);
extern char *strcat(char *, const char *);
extern char *strncat(char *, const char *, size_t);
extern int memcmp(const void *, const void *, size_t);
extern int strcmp(const char *, const char *);
extern int strcoll(const char *, const char *);
extern int strncmp(const char *, const char *, size_t);
extern size_t strxfrm(char *, const char *, size_t);
extern void *memchr(const void *, int, size_t);
extern char *strchr(const char *, int);
extern size_t strcspn(const char *, const char *);
extern char *strpbrk(const char *, const char *);
extern char *strrchr(const char *, int);
extern size_t strspn(const char *, const char *);
extern char *strstr(const char *, const char *);
extern char *strtok(char *, const char *);
extern void *memset(void *, int, size_t);
extern char *strerror(int);
extern size_t strlen(const char *);






# 42 "sysdep.h" 2











# 1 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/include/stdlib.h" 1 3


#pragma lib "/$M/lib/ape/libap.a"

# 1 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/include/stddef.h" 1 3
# 342 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/include/stddef.h" 3

# 5 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/include/stdlib.h" 2 3







typedef struct { int quot, rem; } div_t;
typedef struct { long quot, rem; } ldiv_t;





extern double atof(const char *);
extern int atoi(const char *);
extern long int atol(const char *);
extern double strtod(const char *, char **);
extern long int strtol(const char *, char **, int);
extern unsigned long int strtoul(const char *, char **, int);
extern int rand(void);
extern void srand(unsigned int seed);
extern void *calloc(size_t, size_t);
extern void free(void *);
extern void *malloc(size_t);
extern void *realloc(void *, size_t);
extern void abort(void);
extern int atexit(void (*func)(void));
extern void exit(int);
extern char *getenv(const char *);
extern int system(const char *);
extern void *bsearch(const void *, const void *, size_t, size_t, int (*)(const void *, const void *));
extern void qsort(void *, size_t, size_t, int (*)(const void *, const void *));
extern int abs(int);
extern div_t div(int, int);
extern long int labs(long int);
extern ldiv_t ldiv(long int, long int);
extern int mblen(const char *, size_t);
extern int mbtowc(wchar_t *, const char *, size_t);
extern int wctomb(char *, wchar_t);
extern size_t mbstowcs(wchar_t *, const char *, size_t);
extern size_t wcstombs(char *, const wchar_t *, size_t);









# 53 "sysdep.h" 2




# 1 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/../../../../i386-lucent-plan9/sys-include/sys/time.h" 1 3


#pragma lib "/$M/lib/ape/libap.a"



struct timeval {
	long	tv_sec;
	long	tv_usec;
};
struct timezone {
	int	tz_minuteswest;
	int	tz_dsttime;
};


extern int gettimeofday(struct timeval *, struct timezone *);


# 57 "sysdep.h" 2

# 1 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/include/time.h" 1 3


#pragma lib "/$M/lib/ape/libap.a"

# 1 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/include/stddef.h" 1 3
# 342 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/include/stddef.h" 3

# 5 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/include/time.h" 2 3




 




typedef long clock_t;






struct tm {
	int	tm_sec;
	int	tm_min;
	int	tm_hour;
	int	tm_mday;
	int	tm_mon;
	int	tm_year;
	int	tm_wday;
	int	tm_yday;
	int	tm_isdst;
};





extern clock_t clock(void);
extern double difftime(time_t, time_t);
extern time_t mktime(struct tm *);
extern time_t time(time_t *);
extern char *asctime(const struct tm *);
extern char *ctime(const time_t *);
extern struct tm *gmtime(const time_t *);
extern struct tm *localtime(const time_t *);
extern size_t strftime(char *, size_t, const char *, const struct tm *);


extern void tzset(void);







extern char *tzname[2];






# 58 "sysdep.h" 2










# 1 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/../../../../i386-lucent-plan9/sys-include/unistd.h" 1 3























 





 





 






 











 










 








 
extern int execl(const char *, const char *, ...);
extern int execv(const char *, const char **);
extern int execle(const char *, const char *, const char *,  ...);
extern int execve(const char *, const char **, const char **);
extern int execlp(const char *, const char *, ...);
extern int execvp(const char *, const char **);
extern void _exit(int);
extern unsigned int alarm(unsigned int);
extern int pause(void);
extern unsigned int sleep(unsigned int);

extern pid_t fork(void);


 
extern char *getlogin(void);
extern char *cuserid(char *);
extern char *ttyname(int);
extern int isatty(int);
extern long sysconf(int);

extern pid_t getpid(void);
extern pid_t getppid(void);
extern uid_t getuid(void);
extern uid_t geteuid(void);
extern gid_t getgid(void);
extern gid_t getegid(void);
extern int setuid(uid_t);
extern int setgid(gid_t);
extern int getgroups(int, gid_t *);
extern pid_t getpgrp(void);
extern int setpgid(pid_t, pid_t);
extern pid_t setsid(void);


 
extern int chdir(const char *);
extern int link(const char *, const char *);
extern char *getcwd(char *, size_t);
extern int unlink(const char *);
extern int rmdir(const char *);
extern int rename(const char *, const char *);
extern int access(const char *, int);
extern long pathconf(const char *, int);
extern long fpathconf(int, int);

extern int chown(const char *, uid_t, gid_t);


 
extern int pipe(int *);
extern int dup(int);
extern int dup2(int, int);
extern int close(int);
extern ssize_t read(int, void *, size_t);
extern ssize_t write(int, const void *, size_t);

extern off_t lseek(int, off_t, int);


 

extern pid_t tcgetpgrp(int);
extern int tcsetpgrp(int, pid_t);


 

# 1 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/../../../../i386-lucent-plan9/sys-include/bsd.h" 1 3















#pragma lib "/$M/lib/ape/libbsd.a"






 

extern void	bcopy(void*, void*, size_t);


extern int	bcmp(void*, void*, size_t);


extern void	bzero(void*, size_t);

extern int	ffs(unsigned int);
extern void	bhappy(void*);
extern int	rresvport(int*);
extern int	rcmd(char**, int, char*, char*, char*, int*);
extern char*	strdup(char*);
extern int	strcasecmp(char*, char*);
extern int 	putenv(char*);
extern int	strncasecmp(char*, char*,int);

extern int	getopt(int, char**, char*);
extern int	opterr;
extern int	optind;
extern int	optopt;
extern char	*optarg;
extern char	*mktemp(char *);
extern char	*sys_errlist[];
extern int		sys_nerr;







# 144 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/../../../../i386-lucent-plan9/sys-include/unistd.h" 2 3









# 68 "sysdep.h" 2






# 1 "../include/fopen-same.h" 1
 


























# 74 "sysdep.h" 2




# 1 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/../../../../i386-lucent-plan9/sys-include/fcntl.h" 1 3





#pragma lib "/$M/lib/ape/libap.a"




























struct flock {
	short	l_type;
	short	l_whence;
	off_t	l_start;
	off_t	l_len;
	pid_t	l_pid;
};









extern int fcntl(int, int, ...);
extern int open(const char *, int, ...);
extern int creat(const char *, mode_t);






# 78 "sysdep.h" 2
















































# 1 "../intl/libintl.h" 1
 
















 










 






# 1 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/../../../../i386-lucent-plan9/sys-include/locale.h" 1 3


#pragma lib "/$M/lib/ape/libap.a"

# 1 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/include/stddef.h" 1 3
# 342 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/include/stddef.h" 3

# 5 "/home/dhog/gnu/lib/gcc-lib/i386-lucent-plan9/2.95.3/../../../../i386-lucent-plan9/sys-include/locale.h" 2 3









struct lconv {
	char *decimal_point;
	char *thousands_sep;
	char *grouping;
	char *int_curr_symbol;
	char *currency_symbol;
	char *mon_decimal_point;
	char *mon_thousands_sep;
	char *mon_grouping;
	char *positive_sign;
	char *negative_sign;
	char int_frac_digits;
	char frac_digits;
	char p_cs_precedes;
	char p_sep_by_space;
	char n_cs_precedes;
	char n_sep_by_space;
	char p_sign_posn;
	char n_sign_posn;
};





extern char *setlocale(int, const char *);
extern struct lconv *localeconv(void);






# 36 "../intl/libintl.h" 2








 


















 






 

struct _msg_ent
{
  const char *_msg;
  int _msg_number;
};










 



 


extern char *gettext  (const char *__msgid)  ;
extern char *gettext__  (const char *__msgid)  ;

 

extern char *dgettext  (const char *__domainname, const char *__msgid)  ;
extern char *dgettext__  (const char *__domainname,
				 const char *__msgid)  ;

 

extern char *dcgettext  (const char *__domainname, const char *__msgid,
				int __category)  ;
extern char *dcgettext__  (const char *__domainname,
				  const char *__msgid, int __category)  ;


 


extern char *textdomain  (const char *__domainname)  ;
extern char *textdomain__  (const char *__domainname)  ;

 

extern char *bindtextdomain  (const char *__domainname,
				  const char *__dirname)  ;
extern char *bindtextdomain__  (const char *__domainname,
				    const char *__dirname)  ;



 











 


extern int _nl_msg_cat_cntr;


# 163 "../intl/libintl.h"



# 174 "../intl/libintl.h"


 






# 126 "sysdep.h" 2







# 142 "sysdep.h"



# 45 "plan9-i386.c" 2

# 1 "libbfd.h" 1
 

























 








 



 



 


struct bfd_in_memory
{
   
  bfd_size_type size;
   
  bfd_byte *buffer;
};

 


struct artdata {
  file_ptr first_file_filepos;
   
  struct ar_cache *cache;
  bfd *archive_head;             
  carsym *symdefs;		 
  symindex symdef_count;              
  char *extended_names;		 
   
  long  armap_timestamp;	 





  file_ptr armap_datepos;	 

  void *  tdata;			 
};



 
struct areltdata {
  char * arch_header;			      
  unsigned int parsed_size;      
  char *filename;			      
};



extern void *  bfd_malloc  (size_t)  ;
extern void *  bfd_realloc  (void * , size_t)  ;
extern void *  bfd_zmalloc  (size_t)  ;

extern bfd_error_handler_type _bfd_error_handler;

 

extern void *  bfd_alloc  (bfd *, size_t)  ;
extern void *  bfd_zalloc  (bfd *, size_t)  ;
extern void bfd_release  (bfd *, void * )  ;

bfd *	_bfd_create_empty_archive_element_shell  (bfd *obfd)  ;
bfd *	_bfd_look_for_bfd_in_cache  (bfd *arch_bfd, file_ptr index)  ;
boolean _bfd_add_bfd_to_archive_cache  (bfd *, file_ptr, bfd *)  ;
boolean	_bfd_generic_mkarchive  (bfd *abfd)  ;
const bfd_target *bfd_generic_archive_p  (bfd *abfd)  ;
boolean	bfd_slurp_armap  (bfd *abfd)  ;
boolean bfd_slurp_bsd_armap_f2  (bfd *abfd)  ;


boolean	_bfd_slurp_extended_name_table  (bfd *abfd)  ;
extern boolean _bfd_construct_extended_name_table
   (bfd *, boolean, char **, bfd_size_type *)  ;
boolean	_bfd_write_archive_contents  (bfd *abfd)  ;
boolean _bfd_compute_and_write_armap  (bfd *, unsigned int elength)  ;
bfd *_bfd_get_elt_at_filepos  (bfd *archive, file_ptr filepos)  ;
extern bfd *_bfd_generic_get_elt_at_index  (bfd *, symindex)  ;
bfd * _bfd_new_bfd  (void)  ;

boolean	bfd_false  (bfd *ignore)  ;
boolean	bfd_true  (bfd *ignore)  ;
void * 	bfd_nullvoidptr  (bfd *ignore)  ;
int	bfd_0  (bfd *ignore)  ;
unsigned int	bfd_0u  (bfd *ignore)  ;
long	bfd_0l  (bfd *ignore)  ;
long	_bfd_n1  (bfd *ignore)  ;
void	bfd_void  (bfd *ignore)  ;

bfd *_bfd_new_bfd_contained_in  (bfd *)  ;
const bfd_target *_bfd_dummy_target  (bfd *abfd)  ;

void	bfd_dont_truncate_arname  (bfd *abfd, const  char *filename,
					char *hdr)  ;
void	bfd_bsd_truncate_arname  (bfd *abfd, const  char *filename,
					char *hdr)  ;
void	bfd_gnu_truncate_arname  (bfd *abfd, const  char *filename,
					char *hdr)  ;

boolean	bsd_write_armap  (bfd *arch, unsigned int elength,
				  struct orl *map, unsigned int orl_count, int stridx)  ;

boolean	coff_write_armap  (bfd *arch, unsigned int elength,
				   struct orl *map, unsigned int orl_count, int stridx)  ;

extern void *  _bfd_generic_read_ar_hdr  (bfd *)  ;

extern void *  _bfd_generic_read_ar_hdr_mag  (bfd *, const char *)  ;

bfd *	bfd_generic_openr_next_archived_file  (bfd *archive,
						     bfd *last_file)  ;

int	bfd_generic_stat_arch_elt  (bfd *, struct stat *)  ;




 






extern boolean _bfd_generic_get_section_contents
   (bfd *, asection *, void *  location, file_ptr offset,
	   bfd_size_type count)  ;
extern boolean _bfd_generic_get_section_contents_in_window
   (bfd *, asection *, bfd_window *, file_ptr, bfd_size_type)  ;

 















 


extern char *_bfd_nocore_core_file_failing_command  (bfd *)  ;
extern int _bfd_nocore_core_file_failing_signal  (bfd *)  ;
extern boolean _bfd_nocore_core_file_matches_executable_p
   (bfd *, bfd *)  ;

 





















 





extern boolean _bfd_archive_bsd_construct_extended_name_table
   (bfd *, char **, bfd_size_type *, const char **)  ;








extern boolean _bfd_archive_bsd_update_armap_timestamp  (bfd *)  ;

 





extern boolean _bfd_archive_coff_construct_extended_name_table
   (bfd *, char **, bfd_size_type *, const char **)  ;










 




























 










 









 



extern boolean _bfd_generic_set_section_contents
   (bfd *, asection *, void * , file_ptr, bfd_size_type)  ;

 

























 










 

extern boolean bfd_generic_is_local_label_name  (bfd *, const char *)  ;

 
extern long _bfd_generic_read_minisymbols
   (bfd *, boolean, void *  *, unsigned int *)  ;
extern asymbol *_bfd_generic_minisymbol_to_symbol
   (bfd *, boolean, const void * , asymbol *)  ;

 
extern boolean _bfd_stab_section_find_nearest_line
   (bfd *, asymbol **, asection *, bfd_vma, boolean *, const char **,
	   const char **, unsigned int *, void *  *)  ;

 
extern boolean _bfd_dwarf1_find_nearest_line
   (bfd *, asection *, asymbol **, bfd_vma, const char **,
	   const char **, unsigned int *)  ;

 
extern boolean _bfd_dwarf2_find_nearest_line
   (bfd *, asection *, asymbol **, bfd_vma, const char **,
	   const char **, unsigned int *, unsigned int)  ;

 
extern struct bfd_hash_entry *_bfd_link_hash_newfunc
   (struct bfd_hash_entry *entry,
	   struct bfd_hash_table *table,
	   const char *string)  ;

 
extern boolean _bfd_link_hash_table_init
   (struct bfd_link_hash_table *, bfd *,
	   struct bfd_hash_entry *(*) (struct bfd_hash_entry *,
				       struct bfd_hash_table *,
				       const char *))  ;

 
extern struct bfd_link_hash_table *_bfd_generic_link_hash_table_create
   (bfd *)  ;

 
extern boolean _bfd_generic_link_add_symbols
   (bfd *, struct bfd_link_info *)  ;

 


extern boolean _bfd_generic_link_add_symbols_collect
   (bfd *, struct bfd_link_info *)  ;

 
extern boolean _bfd_generic_link_add_archive_symbols
   (bfd *, struct bfd_link_info *,
	   boolean (*checkfn) (bfd *, struct bfd_link_info *, boolean *))  ;



 
typedef struct bfd_link_hash_entry _bfd_link_hash_entry;

 
extern boolean _bfd_generic_link_add_one_symbol
   (struct bfd_link_info *, bfd *, const char *name, flagword,
	   asection *, bfd_vma, const char *, boolean copy,
	   boolean constructor, struct bfd_link_hash_entry **)  ;

 
extern boolean _bfd_generic_final_link
   (bfd *, struct bfd_link_info *)  ;

extern boolean _bfd_generic_link_split_section
   (bfd *, struct sec *)  ;

 
extern boolean _bfd_generic_reloc_link_order
   (bfd *, struct bfd_link_info *, asection *,
	   struct bfd_link_order *)  ;

 
extern boolean _bfd_default_link_order
   (bfd *, struct bfd_link_info *, asection *,
	   struct bfd_link_order *)  ;

 
extern unsigned int _bfd_count_link_order_relocs
   (struct bfd_link_order *)  ;

 
extern bfd_reloc_status_type _bfd_final_link_relocate
   (reloc_howto_type *, bfd *, asection *, bfd_byte *,
	   bfd_vma address, bfd_vma value, bfd_vma addend)  ;

 
extern bfd_reloc_status_type _bfd_relocate_contents
   (reloc_howto_type *, bfd *, bfd_vma, bfd_byte *)  ;

 

extern boolean _bfd_link_section_stabs
   (bfd *, void *  *, asection *, asection *, void *  *)  ;

 

extern boolean _bfd_write_section_stabs
   (bfd *, void *  *, asection *, void *  *, bfd_byte *)  ;

 

extern boolean _bfd_write_stab_strings  (bfd *, void *  *)  ;

 


extern bfd_vma _bfd_stab_section_offset
   (bfd *, void *  *, asection *, void *  *, bfd_vma)  ;

 
extern struct bfd_strtab_hash *_bfd_stringtab_init  (void)  ;

 
extern struct bfd_strtab_hash *_bfd_xcoff_stringtab_init  (void)  ;

 
extern void _bfd_stringtab_free  (struct bfd_strtab_hash *)  ;

 
extern bfd_size_type _bfd_stringtab_size  (struct bfd_strtab_hash *)  ;

 
extern bfd_size_type _bfd_stringtab_add
   (struct bfd_strtab_hash *, const char *, boolean hash,
	   boolean copy)  ;

 
extern boolean _bfd_stringtab_emit  (bfd *, struct bfd_strtab_hash *)  ;

 
extern boolean _bfd_generic_verify_endian_match  (bfd *, bfd *)  ;

 











void	bfd_assert  (const char*,int)  ;







extern void _bfd_abort  (const char *, int, const char *)  
     __attribute__ ((__noreturn__)) ;

 







FILE *	bfd_cache_lookup_worker  (bfd *)  ;

extern bfd *bfd_last_cache;

 

extern const bfd_target * const bfd_target_vector[];
extern const bfd_target *bfd_default_vector[];

 



struct ecoff_find_line;


extern boolean _bfd_ecoff_locate_line
   (bfd *, asection *, bfd_vma, struct ecoff_debug_info * const,
	   const struct ecoff_debug_swap * const, struct ecoff_find_line *,
	   const char **, const char **, unsigned int *)  ;
extern boolean _bfd_ecoff_get_accumulated_pdr  (void * , bfd_byte *)  ;
extern boolean _bfd_ecoff_get_accumulated_sym  (void * , bfd_byte *)  ;
extern boolean _bfd_ecoff_get_accumulated_ss  (void * , bfd_byte *)  ;

extern bfd_vma _bfd_get_gp_value  (bfd *)  ;
extern void _bfd_set_gp_value  (bfd *, bfd_vma)  ;

 


extern boolean _bfd_sh_align_load_span
   (bfd *, asection *, bfd_byte *,
	   boolean (*) (bfd *, asection *, void * , bfd_byte *, bfd_vma),
	   void * , bfd_vma **, bfd_vma *, bfd_vma, bfd_vma, boolean *)  ;

 

void 
bfd_write_bigendian_4byte_int  (bfd *abfd,  int i)  ;

unsigned int 
bfd_log2  (bfd_vma x)  ;


extern bfd *bfd_last_cache;





boolean 
bfd_cache_init   (bfd *abfd)  ;

boolean 
bfd_cache_close   (bfd *abfd)  ;

FILE* 
bfd_open_file  (bfd *abfd)  ;

FILE *
bfd_cache_lookup_worker  (bfd *abfd)  ;

# 903 "libbfd.h"


reloc_howto_type *
bfd_default_reloc_type_lookup
  (bfd *abfd, bfd_reloc_code_real_type  code)  ;

boolean 
bfd_generic_relax_section
  (bfd *abfd,
    asection *section,
    struct bfd_link_info *,
    boolean *)  ;

boolean 
bfd_generic_gc_sections
  (bfd *, struct bfd_link_info *)  ;

bfd_byte *

bfd_generic_get_relocated_section_contents   (bfd *abfd,
    struct bfd_link_info *link_info,
    struct bfd_link_order *link_order,
    bfd_byte *data,
    boolean relocateable,
    asymbol **symbols)  ;

extern const bfd_arch_info_type bfd_default_arch_struct;
boolean 
bfd_default_set_arch_mach  (bfd *abfd,
    enum bfd_architecture arch,
    unsigned long mach)  ;

const bfd_arch_info_type *
bfd_default_compatible
  (const bfd_arch_info_type *a,
    const bfd_arch_info_type *b)  ;

boolean 
bfd_default_scan  (const struct bfd_arch_info *info, const char *string)  ;

struct elf_internal_shdr *
bfd_elf_find_section   (bfd *abfd, char *name)  ;

# 46 "plan9-i386.c" 2

# 1 "libaout.h" 1
 























 



# 1 "../include/bfdlink.h" 1
 






















 
enum bfd_link_strip
{
  strip_none,		 
  strip_debugger,	 
  strip_some,		 
  strip_all		 
};

 

enum bfd_link_discard
{
  discard_none,		 
  discard_l,		 
  discard_all		 
};

 


enum bfd_link_hash_type
{
  bfd_link_hash_new,		 
  bfd_link_hash_undefined,	 
  bfd_link_hash_undefweak,	 
  bfd_link_hash_defined,	 
  bfd_link_hash_defweak,	 
  bfd_link_hash_common,		 
  bfd_link_hash_indirect,	 
  bfd_link_hash_warning		 
};

 


struct bfd_link_hash_entry
{
   
  struct bfd_hash_entry root;
   
  enum bfd_link_hash_type type;

   

















  struct bfd_link_hash_entry *next;
   
  union
    {
       
       
      struct
	{
	  bfd *abfd;		 
	} undef;
       
      struct
	{
	  bfd_vma value;	 
	  asection *section;	 
	} def;
       
      struct
	{
	  struct bfd_link_hash_entry *link;	 
	  const char *warning;	 
	} i;
       
      struct
	{
	   








	  bfd_size_type size;	 
	  struct bfd_link_hash_common_entry
	    {
	      unsigned int alignment_power;	 
	      asection *section;		 
	    } *p;
	} c;
    } u;
};

 


struct bfd_link_hash_table
{
   
  struct bfd_hash_table table;
   



  const bfd_target *creator;
   

  struct bfd_link_hash_entry *undefs;
   
  struct bfd_link_hash_entry *undefs_tail;
};

 


extern struct bfd_link_hash_entry *bfd_link_hash_lookup
   (struct bfd_link_hash_table *, const char *, boolean create,
	   boolean copy, boolean follow)  ;

 



extern struct bfd_link_hash_entry *bfd_wrapped_link_hash_lookup
   (bfd *, struct bfd_link_info *, const char *, boolean, boolean,
	   boolean)  ;

 
extern void bfd_link_hash_traverse
   (struct bfd_link_hash_table *,
	   boolean (*) (struct bfd_link_hash_entry *, void * ),
	   void * )  ;

 
extern void bfd_link_add_undef
   (struct bfd_link_hash_table *, struct bfd_link_hash_entry *)  ;

 


struct bfd_link_info
{
   
  const struct bfd_link_callbacks *callbacks;
   
  boolean relocateable;
   

  boolean task_link;
   
  boolean shared;
   
  boolean symbolic;
   
  boolean static_link;
   



  boolean traditional_format;
   

  boolean optimize;
   

  boolean no_undefined;
   
  enum bfd_link_strip strip;
   
  enum bfd_link_discard discard;
   

  boolean keep_memory;
   

  bfd *input_bfds;
   




  asection *create_object_symbols_section;
   
  struct bfd_link_hash_table *hash;
   

  struct bfd_hash_table *keep_hash;
   

  boolean notice_all;
   


  struct bfd_hash_table *notice_hash;
   

  struct bfd_hash_table *wrap_hash;
   
  void *  base_file;

   


  int mpc860c0;

   

  const char *init_function;
   

  const char *fini_function;
};

 






struct bfd_link_callbacks
{
   



  boolean (*add_archive_element)  (struct bfd_link_info *,
					  bfd *abfd,
					  const char *name)  ;
   





  boolean (*multiple_definition)  (struct bfd_link_info *,
					  const char *name,
					  bfd *obfd,
					  asection *osec,
					  bfd_vma oval,
					  bfd *nbfd,
					  asection *nsec,
					  bfd_vma nval)  ;
   










  boolean (*multiple_common)  (struct bfd_link_info *,
				      const char *name,
				      bfd *obfd,
				      enum bfd_link_hash_type otype,
				      bfd_vma osize,
				      bfd *nbfd,
				      enum bfd_link_hash_type ntype,
				      bfd_vma nsize)  ;
   





  boolean (*add_to_set)  (struct bfd_link_info *,
				 struct bfd_link_hash_entry *entry,
				 bfd_reloc_code_real_type reloc,
				 bfd *abfd, asection *sec, bfd_vma value)  ;
   





  boolean (*constructor)  (struct bfd_link_info *,
				  boolean constructor,
				  const char *name, bfd *abfd, asection *sec,
				  bfd_vma value)  ;
   






  boolean (*warning)  (struct bfd_link_info *,
			      const char *warning, const char *symbol,
			      bfd *abfd, asection *section,
			      bfd_vma address)  ;
   




  boolean (*undefined_symbol)  (struct bfd_link_info *,
				       const char *name, bfd *abfd,
				       asection *section,
				       bfd_vma address,
				       boolean fatal)  ;
   






  boolean (*reloc_overflow)  (struct bfd_link_info *,
				     const char *name,
				     const char *reloc_name, bfd_vma addend,
				     bfd *abfd, asection *section,
				     bfd_vma address)  ;
   






  boolean (*reloc_dangerous)  (struct bfd_link_info *,
				      const char *message,
				      bfd *abfd, asection *section,
				      bfd_vma address)  ;
   





  boolean (*unattached_reloc)  (struct bfd_link_info *,
				       const char *name,
				       bfd *abfd, asection *section,
				       bfd_vma address)  ;
   



  boolean (*notice)  (struct bfd_link_info *, const char *name,
			     bfd *abfd, asection *section, bfd_vma address)  ;
};

 


 

enum bfd_link_order_type
{
  bfd_undefined_link_order,	 
  bfd_indirect_link_order,	 
  bfd_fill_link_order,		 
  bfd_data_link_order,		 
  bfd_section_reloc_link_order,	 
  bfd_symbol_reloc_link_order	 
};

 


struct bfd_link_order 
{
   
  struct bfd_link_order *next;
   
  enum bfd_link_order_type type;
   
  bfd_vma offset;  
   
  bfd_size_type size;
   
  union 
    {
      struct 
	{
	   





	  asection *section;
	} indirect;
      struct
	{
	   
	  unsigned int value;
	} fill;
      struct
	{
	   

	  bfd_byte *contents;
	} data;
      struct
	{
	   


	  struct bfd_link_order_reloc *p;
	} reloc;
    } u;
};

 











struct bfd_link_order_reloc
{
   
  bfd_reloc_code_real_type reloc;

  union
    {
       


      asection *section;
       

      const char *name;
    } u;

   




  bfd_vma addend;
};

 
extern struct bfd_link_order *bfd_new_link_order  (bfd *, asection *)  ;

 




 

struct bfd_elf_version_expr
{
   
  struct bfd_elf_version_expr *next;
   
  const char *pattern;
   
  int (*match)  (struct bfd_elf_version_expr *, const char *)  ;
};

 

struct bfd_elf_version_deps
{
   
  struct bfd_elf_version_deps *next;
   
  struct bfd_elf_version_tree *version_needed;
};

 

struct bfd_elf_version_tree
{
   
  struct bfd_elf_version_tree *next;
   
  const char *name;
   
  unsigned int vernum;
   
  struct bfd_elf_version_expr *globals;
   
  struct bfd_elf_version_expr *locals;
   
  struct bfd_elf_version_deps *deps;
   
  unsigned int name_indx;
   
  int used;
};


# 29 "libaout.h" 2


 

# 42 "libaout.h"











 

struct external_exec;
struct external_nlist;
struct reloc_ext_external;
struct reloc_std_external;

 

struct aout_link_hash_entry
{
  struct bfd_link_hash_entry root;
   
  boolean written;
   
  int indx;
};

 

struct aout_link_hash_table
{
  struct bfd_link_hash_table root;
};

 





 







 




 
struct aout_backend_data
{
   


  unsigned char zmagic_mapped_contiguous;
   


  unsigned char text_includes_header;

   



  unsigned char entry_is_text_address;

   
  unsigned char exec_hdr_flags;

   


   


  bfd_vma default_text_vma;

   

  boolean (*set_sizes)  (bfd *)  ;

   


  unsigned char exec_header_not_counted;

   

  boolean (*add_dynamic_symbols)  (bfd *, struct bfd_link_info *,
					  struct external_nlist **,
					  bfd_size_type *, char **)  ;

   

  boolean (*add_one_symbol)  (struct bfd_link_info *, bfd *,
				     const char *, flagword, asection *,
				     bfd_vma, const char *, boolean,
				     boolean,
				     struct bfd_link_hash_entry **)  ;

   
  boolean (*link_dynamic_object)  (struct bfd_link_info *, bfd *)  ;

   

  boolean (*write_dynamic_symbol)  (bfd *, struct bfd_link_info *,
					   struct aout_link_hash_entry *)  ;

   



  boolean (*check_dynamic_reloc)  (struct bfd_link_info *info,
					  bfd *input_bfd,
					  asection *input_section,
					  struct aout_link_hash_entry *h,
					  void *  reloc, bfd_byte *contents,
					  boolean *skip,
					  bfd_vma *relocation)  ;

   

  boolean (*finish_dynamic_link)  (bfd *, struct bfd_link_info *)  ;
};



 





struct internal_exec
{
    long a_info;		 
    bfd_vma a_text;		 
    bfd_vma a_data;		 
    bfd_vma a_bss;		 
    bfd_vma a_syms;		 
    bfd_vma a_entry;		 
    bfd_vma a_trsize;		 
    bfd_vma a_drsize;		 
     
    bfd_vma a_tload;		 
    bfd_vma a_dload;		 
    unsigned char a_talign;	 
    unsigned char a_dalign;	 
    unsigned char a_balign;	 
    char a_relaxable;            
};

 




 





enum machine_type {
  M_UNKNOWN = 0,
  M_68010 = 1,
  M_68020 = 2,
  M_SPARC = 3,
   
   
  M_NS32032 = (64),		 
  M_NS32532 = (64 + 5),		 

  M_386 = 100,
  M_29K = 101,           
  M_386_DYNIX = 102,	 
  M_ARM = 103,		 
  M_SPARCLET = 131,	 
  M_386_NETBSD = 134,	 
  M_68K_NETBSD = 135,	 
  M_68K4K_NETBSD = 136,	 
  M_532_NETBSD = 137,	 
  M_SPARC_NETBSD = 138,	 
  M_PMAX_NETBSD = 139,	 
  M_VAX_NETBSD = 140,	 
  M_ALPHA_NETBSD = 141,	 
  M_ARM6_NETBSD = 143,	 
  M_SPARCLET_1 = 147,	 
  M_MIPS1 = 151,         
  M_MIPS2 = 152,         
  M_SPARCLET_2 = 163,	 
  M_SPARCLET_3 = 179,	 
  M_SPARCLET_4 = 195,	 
  M_HP200 = 200,	 
  M_HP300 = (300 % 256),  
  M_HPUX = (0x20c % 256),  
  M_SPARCLET_5 = 211,	 
  M_SPARCLET_6 = 227,	 
   
  M_SPARCLITE_LE = 243
};













































typedef struct aout_symbol {
  asymbol symbol;
  short desc;
  char other;
  unsigned char type;
} aout_symbol_type;

 



struct aoutdata {
  struct internal_exec *hdr;		 
  aout_symbol_type *symbols;		 
  
   
  asection *textsec;
  asection *datasec;
  asection *bsssec;

   

  file_ptr sym_filepos;
  file_ptr str_filepos;

   
  unsigned reloc_entry_size;

   
  unsigned symbol_entry_size;

   
  unsigned long page_size;

   
  unsigned long segment_size;

   

  unsigned long zmagic_disk_block_size;

  unsigned exec_bytes_size;
  unsigned vma_adjusted : 1;

   
  enum
    {
      default_format = 0,
       
      gnu_encap_format,
       
      q_magic_format
    } subformat;

  enum
    {
      undecided_magic = 0,
      z_magic,
      o_magic,
      n_magic
    } magic;

   
  char *line_buf;

   
  struct external_nlist *external_syms;
  bfd_size_type external_sym_count;
  bfd_window sym_window;
  char *external_strings;
  bfd_size_type external_string_size;
  bfd_window string_window;
  struct aout_link_hash_entry **sym_hashes;

   
  void *  dynamic_info;

   


  bfd_vma *local_got_offsets;
};

struct  aout_data_struct {
    struct aoutdata a;
    struct internal_exec e;
};





















 



 


struct aout_section_data_struct
{
   
  void *  relocs;
};







 

boolean
  aout_32_squirt_out_relocs      (bfd *abfd, asection *section)  ;

boolean
  aout_32_make_sections      (bfd *)  ;

const bfd_target *
  aout_32_some_aout_object_p      (bfd *abfd,
				       struct internal_exec *execp,
				       const bfd_target *(*callback)(bfd *))  ;

boolean
  aout_32_mkobject      (bfd *abfd)  ;

enum machine_type
  aout_32_machine_type      (enum bfd_architecture arch,
				 unsigned long machine,
				 boolean *unknown)  ;

boolean
  aout_32_set_arch_mach      (bfd *abfd, enum bfd_architecture arch,
		 		  unsigned long machine)  ;

boolean
  aout_32_new_section_hook      (bfd *abfd, asection *newsect)  ;

boolean
  aout_32_set_section_contents      (bfd *abfd, sec_ptr section,
			 void *  location, file_ptr offset, bfd_size_type count)  ;

asymbol *
  aout_32_make_empty_symbol      (bfd *abfd)  ;

boolean
  aout_32_translate_symbol_table      (bfd *, aout_symbol_type *,
					   struct external_nlist *,
					   bfd_size_type, char *,
					   bfd_size_type,
					   boolean dynamic)  ;

boolean
  aout_32_slurp_symbol_table      (bfd *abfd)  ;

boolean
  aout_32_write_syms      (bfd *abfd)  ;

void
  aout_32_reclaim_symbol_table      (bfd *abfd)  ;

long
  aout_32_get_symtab_upper_bound      (bfd *abfd)  ;

long
  aout_32_get_symtab      (bfd *abfd, asymbol **location)  ;

void
  aout_32_swap_ext_reloc_in      (bfd *, struct reloc_ext_external *,
				      arelent *, asymbol **, bfd_size_type)  ;
void
  aout_32_swap_std_reloc_in      (bfd *, struct reloc_std_external *,
				      arelent *, asymbol **, bfd_size_type)  ;

reloc_howto_type *
  aout_32_reloc_type_lookup      (bfd *abfd,
				      bfd_reloc_code_real_type code)  ;

boolean
  aout_32_slurp_reloc_table      (bfd *abfd, sec_ptr asect,
				      asymbol **symbols)  ;

long
  aout_32_canonicalize_reloc      (bfd *abfd, sec_ptr section,
				       arelent **relptr, asymbol **symbols)  ;

long
  aout_32_get_reloc_upper_bound      (bfd *abfd, sec_ptr asect)  ;

void
  aout_32_reclaim_reloc      (bfd *ignore_abfd, sec_ptr ignore)  ;

alent *
  aout_32_get_lineno      (bfd *ignore_abfd, asymbol *ignore_symbol)  ;

void
  aout_32_print_symbol      (bfd *ignore_abfd, void *  file,
			    asymbol *symbol, bfd_print_symbol_type how)  ;

void
  aout_32_get_symbol_info      (bfd *ignore_abfd,
                           asymbol *symbol, symbol_info *ret)  ;

boolean
  aout_32_find_nearest_line      (bfd *abfd, asection *section,
      asymbol **symbols, bfd_vma offset, const  char **filename_ptr,
      const  char **functionname_ptr, unsigned int *line_ptr)  ;

long
  aout_32_read_minisymbols      (bfd *, boolean, void *  *, unsigned int *)  ;

asymbol *
  aout_32_minisymbol_to_symbol      (bfd *, boolean, const void * ,
					 asymbol *)  ;

int
  aout_32_sizeof_headers      (bfd *abfd, boolean exec)  ;

boolean
  aout_32_adjust_sizes_and_vmas      (bfd *abfd,
       bfd_size_type *text_size, file_ptr *text_end)  ;

void
  aout_32_swap_exec_header_in      (bfd *abfd,
       struct external_exec *raw_bytes, struct internal_exec *execp)  ;

void
  aout_32_swap_exec_header_out      (bfd *abfd,
       struct internal_exec *execp, struct external_exec *raw_bytes)  ;

struct bfd_hash_entry *
  aout_32_link_hash_newfunc    
   (struct bfd_hash_entry *, struct bfd_hash_table *, const char *)  ;

boolean
  aout_32_link_hash_table_init    
      (struct aout_link_hash_table *, bfd *,
	      struct bfd_hash_entry *(*) (struct bfd_hash_entry *,
					  struct bfd_hash_table *,
					  const char *))  ;

struct bfd_link_hash_table *
  aout_32_link_hash_table_create      (bfd *)  ;

boolean
  aout_32_link_add_symbols      (bfd *, struct bfd_link_info *)  ;

boolean
  aout_32_final_link      (bfd *, struct bfd_link_info *,
			       void (*) (bfd *, file_ptr *, file_ptr *,
					 file_ptr *))  ;

boolean
  aout_32_bfd_free_cached_info      (bfd *)  ;

 














# 622 "libaout.h"



# 47 "plan9-i386.c" 2










static boolean  plan9_i386_write_dynamic_symbol    
   (bfd *, struct bfd_link_info *, struct aout_link_hash_entry *)  ;






# 1 "aout-target.h" 1
 



















# 1 "../include/aout/aout64.h" 1
 




 


struct external_exec 
{
  bfd_byte e_info[4];		 
  bfd_byte e_text[4 ];  
  bfd_byte e_data[4 ];  
  bfd_byte e_bss[4 ];  
  bfd_byte e_syms[4 ];  
  bfd_byte e_entry[4 ];  
  bfd_byte e_trsize[4 ];  
  bfd_byte e_drsize[4 ];  
};



 

# 35 "../include/aout/aout64.h"






 




















 








 






 




































 





 









 






# 147 "../include/aout/aout64.h"


 












 










 














 







 



 

 





























 

struct external_nlist {
  bfd_byte e_strx[4 ];	 
  bfd_byte e_type[1];			 
  bfd_byte e_other[1];			 
  bfd_byte e_desc[2];			 
  bfd_byte e_value[4 ];	 
};



struct internal_nlist {
  unsigned long n_strx;			 
  unsigned char n_type;			 
  unsigned char n_other;		 
  unsigned short n_desc;		 
  bfd_vma n_value;			 
};

 









 








 










 





 


 





 










 











 




struct reloc_std_external {
  bfd_byte	r_address[4 ];	 
  bfd_byte r_index[3];	 
  bfd_byte r_type[1];	 
};























struct reloc_std_internal
{
  bfd_vma r_address;		 
   
  unsigned int r_symbolnum:24;
   


  unsigned int r_pcrel:1;
   

  unsigned int r_length:2;
   





  unsigned int r_extern:1;
   

  unsigned int r_baserel:1;	 
  unsigned int r_jmptable:1;	 
  unsigned int r_relative:1;	 
   
  unsigned int r_pad:1;		 
};


 

struct reloc_ext_external {
  bfd_byte r_address[4 ];	 
  bfd_byte r_index[3];	 
  bfd_byte r_type[1];	 
  bfd_byte r_addend[4 ];	 
};

























 


enum reloc_type
{
   
  RELOC_8,			 
  RELOC_16,			 
  RELOC_32,			 
   
  RELOC_DISP8,			 
  RELOC_DISP16,			 
  RELOC_DISP32,			 
   
  RELOC_WDISP30,		 
  RELOC_WDISP22,		 
  RELOC_HI22,			 
  RELOC_22,			 
  RELOC_13,			 
  RELOC_LO10,			 
  RELOC_SFA_BASE,		
  RELOC_SFA_OFF13,
   
  RELOC_BASE10,  		 
  RELOC_BASE13,			 
  RELOC_BASE22,
   
  RELOC_PC10,
  RELOC_PC22,
   
  RELOC_JMP_TBL,
   
  RELOC_SEGOFF16,
  RELOC_GLOB_DAT,
  RELOC_JMP_SLOT,
  RELOC_RELATIVE,

  RELOC_11,	
  RELOC_WDISP2_14,
  RELOC_WDISP19,
  RELOC_HHI22,			 
  RELOC_HLO10,			 
  
   
  RELOC_JUMPTARG,
  RELOC_CONST,
  RELOC_CONSTH,
  
   

  RELOC_64,			 
  RELOC_DISP64,			 
  RELOC_WDISP21,		 
  RELOC_DISP21,			 
  RELOC_DISP14,			 
   





  NO_RELOC
  };


struct reloc_internal {
  bfd_vma r_address;		 
  long	r_index;		 
  enum reloc_type r_type;	 
  bfd_vma r_addend;		 
};

 








# 21 "aout-target.h" 2

# 1 "../include/aout/stab_gnu.h" 1


 






enum __stab_debug_code
{
# 1 "../include/aout/stab.def" 1
 

















 








 

 

 N_GSYM =  0x20 , 

 

 N_FNAME =  0x22 , 

 


 N_FUN =  0x24 , 

 

 N_STSYM =  0x26 , 

 
 N_LCSYM =  0x28 , 

 
 N_MAIN =  0x2a , 

 
 N_ROSYM =  0x2c , 

 

 N_PC =  0x30 , 

 
 N_NSYMS =  0x32 , 

 
 N_NOMAP =  0x34 , 

 




 N_OBJ =  0x38 , 

 


 N_OPT =  0x3c , 

 
 N_RSYM =  0x40 , 

 
 N_M2C =  0x42 , 

 


 N_SLINE =  0x44 , 

 
 N_DSLINE =  0x46 , 

 
 N_BSLINE =  0x48 , 

 


 N_BROWS =  0x48 , 

 



 N_DEFD =  0x4a , 

 
 N_FLINE =  0x4C , 

 

 
 N_EHDECL =  0x50 , 
 
 N_MOD2 =  0x50 , 

 




 N_CATCH =  0x54 , 

 
 N_SSYM =  0x60 , 

 
 N_ENDM =  0x62 , 

 







 N_SO =  0x64 , 

 
 N_ALIAS =  0x6c , 

 

 N_LSYM =  0x80 , 

 


 N_BINCL =  0x82 , 

 

 N_SOL =  0x84 , 

 

 N_PSYM =  0xa0 , 

 



 N_EINCL =  0xa2 , 

 
 N_ENTRY =  0xa4 , 

 




 N_LBRAC =  0xc0 , 

 



 N_EXCL =  0xc2 , 

 
 N_SCOPE =  0xc4 , 

 


 N_RBRAC =  0xe0 , 

 
 N_BCOMM =  0xe2 , 

 

 N_ECOMM =  0xe4 , 

 

 N_ECOML =  0xe8 , 

 
 N_WITH =  0xea , 

 


 N_NBTEXT =  0xF0 , 
 N_NBDATA =  0xF2 , 
 N_NBBSS =   0xF4 , 
 N_NBSTS =   0xF6 , 
 N_NBLCS =   0xF8 , 

 

 N_LENG =  0xfe , 

 




















































# 12 "../include/aout/stab_gnu.h" 2

LAST_UNUSED_STAB_CODE
};



 








 










# 22 "aout-target.h" 2

# 1 "../include/aout/ar.h" 1
 

 





 








 







struct ar_hdr {
  char ar_name[16];		 
  char ar_date[12];		 
  char ar_uid[6];		 
  char ar_gid[6];		 
  char ar_mode[8];		 
  char ar_size[10];		 
  char ar_fmag[2];		 
};


# 23 "aout-target.h" 2

 





extern reloc_howto_type *   aout_32_reloc_type_lookup    
   (bfd *, bfd_reloc_code_real_type)  ;

 



static const bfd_target *  plan9_i386_callback      (bfd *)  ;

static const bfd_target *
 plan9_i386_callback     (abfd)
     bfd *abfd;
{
  struct internal_exec *execp = (((  abfd  )->tdata.aout_data->a) .hdr) ;
  unsigned int arch_align_power;
  unsigned long arch_align;

   
  (((  abfd  )->tdata.aout_data->a) .textsec) ->_raw_size = ( (((   *execp   ).a_info & 0xffff)  == ((((4* 11 )+0)* 11 )+7)   )  ? ( *execp ).a_text - (4 + 4  * 7)  : (((  *execp  ).a_info & 0xffff)  != 0413  || 0 ) ? ( *execp ).a_text : 1   ?	( *execp ).a_text - (4 + 4  * 7) :	( *execp ).a_text	) ;

   
  (((  abfd  )->tdata.aout_data->a) .textsec) ->vma = ( (((   *execp   ).a_info & 0xffff)  == ((((4* 11 )+0)* 11 )+7)   )  ? 4096  + (4 + 4  * 7)  : ((  *execp  ).a_info & 0xffff)  != 0413  ? 0 :	0  ? 0 :	1   ?	4096   + (4 + 4  * 7)  :	4096  	) ;
  (((  abfd  )->tdata.aout_data->a) .datasec) ->vma = (((  *execp  ).a_info & 0xffff) == 0407 ? (( (((    *execp    ).a_info & 0xffff)  == ((((4* 11 )+0)* 11 )+7)   )  ? 4096  + (4 + 4  * 7)  : ((   *execp   ).a_info & 0xffff)  != 0413  ? 0 :	0  ? 0 :	1   ?	4096   + (4 + 4  * 7)  :	4096  	) + ( (((    *execp    ).a_info & 0xffff)  == ((((4* 11 )+0)* 11 )+7)   )  ? (  *execp  ).a_text - (4 + 4  * 7)  : (((   *execp   ).a_info & 0xffff)  != 0413  || 0 ) ? (  *execp  ).a_text : 1   ?	(  *execp  ).a_text - (4 + 4  * 7) :	(  *execp  ).a_text	) ) :  (4096    + ((( (((    *execp    ).a_info & 0xffff)  == ((((4* 11 )+0)* 11 )+7)   )  ? 4096  + (4 + 4  * 7)  : ((   *execp   ).a_info & 0xffff)  != 0413  ? 0 :	0  ? 0 :	1   ?	4096   + (4 + 4  * 7)  :	4096  	) + ( (((    *execp    ).a_info & 0xffff)  == ((((4* 11 )+0)* 11 )+7)   )  ? (  *execp  ).a_text - (4 + 4  * 7)  : (((   *execp   ).a_info & 0xffff)  != 0413  || 0 ) ? (  *execp  ).a_text : 1   ?	(  *execp  ).a_text - (4 + 4  * 7) :	(  *execp  ).a_text	) -1) & ~(4096   -1)))) ;
  (((  abfd  )->tdata.aout_data->a) .bsssec) ->vma = ((((   *execp   ).a_info & 0xffff) == 0407 ? (( (((     *execp     ).a_info & 0xffff)  == ((((4* 11 )+0)* 11 )+7)   )  ? 4096  + (4 + 4  * 7)  : ((    *execp    ).a_info & 0xffff)  != 0413  ? 0 :	0  ? 0 :	1   ?	4096   + (4 + 4  * 7)  :	4096  	) + ( (((     *execp     ).a_info & 0xffff)  == ((((4* 11 )+0)* 11 )+7)   )  ? (   *execp   ).a_text - (4 + 4  * 7)  : (((    *execp    ).a_info & 0xffff)  != 0413  || 0 ) ? (   *execp   ).a_text : 1   ?	(   *execp   ).a_text - (4 + 4  * 7) :	(   *execp   ).a_text	) ) :  (4096    + ((( (((     *execp     ).a_info & 0xffff)  == ((((4* 11 )+0)* 11 )+7)   )  ? 4096  + (4 + 4  * 7)  : ((    *execp    ).a_info & 0xffff)  != 0413  ? 0 :	0  ? 0 :	1   ?	4096   + (4 + 4  * 7)  :	4096  	) + ( (((     *execp     ).a_info & 0xffff)  == ((((4* 11 )+0)* 11 )+7)   )  ? (   *execp   ).a_text - (4 + 4  * 7)  : (((    *execp    ).a_info & 0xffff)  != 0413  || 0 ) ? (   *execp   ).a_text : 1   ?	(   *execp   ).a_text - (4 + 4  * 7) :	(   *execp   ).a_text	) -1) & ~(4096   -1))))  + ( *execp ).a_data) ;

   


  if (((const  struct aout_backend_data *)(( abfd )->xvec->backend_data)) ->entry_is_text_address
      && execp->a_entry > (((  abfd  )->tdata.aout_data->a) .textsec) ->vma)
    {
      bfd_vma adjust;

      adjust = execp->a_entry - (((  abfd  )->tdata.aout_data->a) .textsec) ->vma;
       
      adjust &= ~(4096  - 1);
      (((  abfd  )->tdata.aout_data->a) .textsec) ->vma += adjust;
      (((  abfd  )->tdata.aout_data->a) .datasec) ->vma += adjust;
      (((  abfd  )->tdata.aout_data->a) .bsssec) ->vma += adjust;
    }

   
  (((  abfd  )->tdata.aout_data->a) .textsec) ->lma = (((  abfd  )->tdata.aout_data->a) .textsec) ->vma;
  (((  abfd  )->tdata.aout_data->a) .datasec) ->lma = (((  abfd  )->tdata.aout_data->a) .datasec) ->vma;
  (((  abfd  )->tdata.aout_data->a) .bsssec) ->lma = (((  abfd  )->tdata.aout_data->a) .bsssec) ->vma;

   
  (((  abfd  )->tdata.aout_data->a) .textsec) ->filepos = ( ((  *execp  ).a_info & 0xffff)  != 0413  ? (4 + 4  * 7)  : 0  ? 0 : 1  ?	(4 + 4  * 7)  :	4096  	) ;
  (((  abfd  )->tdata.aout_data->a) .datasec) ->filepos = (( ((   *execp   ).a_info & 0xffff)  != 0413  ? (4 + 4  * 7)  : 0  ? 0 : 1  ?	(4 + 4  * 7)  :	4096  	)  + ( (((    *execp    ).a_info & 0xffff)  == ((((4* 11 )+0)* 11 )+7)   )  ? (  *execp  ).a_text - (4 + 4  * 7)  : (((   *execp   ).a_info & 0xffff)  != 0413  || 0 ) ? (  *execp  ).a_text : 1   ?	(  *execp  ).a_text - (4 + 4  * 7) :	(  *execp  ).a_text	) ) ;

   
  (((  abfd  )->tdata.aout_data->a) .textsec) ->rel_filepos = ( (( ((    *execp    ).a_info & 0xffff)  != 0413  ? (4 + 4  * 7)  : 0  ? 0 : 1  ?	(4 + 4  * 7)  :	4096  	)  + ( (((     *execp     ).a_info & 0xffff)  == ((((4* 11 )+0)* 11 )+7)   )  ? (   *execp   ).a_text - (4 + 4  * 7)  : (((    *execp    ).a_info & 0xffff)  != 0413  || 0 ) ? (   *execp   ).a_text : 1   ?	(   *execp   ).a_text - (4 + 4  * 7) :	(   *execp   ).a_text	) )  + ( *execp ).a_data ) ;
  (((  abfd  )->tdata.aout_data->a) .datasec) ->rel_filepos = ( ( (( ((     *execp     ).a_info & 0xffff)  != 0413  ? (4 + 4  * 7)  : 0  ? 0 : 1  ?	(4 + 4  * 7)  :	4096  	)  + ( (((      *execp      ).a_info & 0xffff)  == ((((4* 11 )+0)* 11 )+7)   )  ? (    *execp    ).a_text - (4 + 4  * 7)  : (((     *execp     ).a_info & 0xffff)  != 0413  || 0 ) ? (    *execp    ).a_text : 1   ?	(    *execp    ).a_text - (4 + 4  * 7) :	(    *execp    ).a_text	) )  + (  *execp  ).a_data )  + ( *execp ).a_trsize ) ;

   
  (((  abfd  )->tdata.aout_data->a) .sym_filepos)  = ( ( ( (( ((      *execp      ).a_info & 0xffff)  != 0413  ? (4 + 4  * 7)  : 0  ? 0 : 1  ?	(4 + 4  * 7)  :	4096  	)  + ( (((       *execp       ).a_info & 0xffff)  == ((((4* 11 )+0)* 11 )+7)   )  ? (     *execp     ).a_text - (4 + 4  * 7)  : (((      *execp      ).a_info & 0xffff)  != 0413  || 0 ) ? (     *execp     ).a_text : 1   ?	(     *execp     ).a_text - (4 + 4  * 7) :	(     *execp     ).a_text	) )  + (   *execp   ).a_data )  + (  *execp  ).a_trsize )  + ( *execp ).a_drsize ) ;
  (((  abfd  )->tdata.aout_data->a) .str_filepos)  = ( ( ( ( (( ((       *execp       ).a_info & 0xffff)  != 0413  ? (4 + 4  * 7)  : 0  ? 0 : 1  ?	(4 + 4  * 7)  :	4096  	)  + ( (((        *execp        ).a_info & 0xffff)  == ((((4* 11 )+0)* 11 )+7)   )  ? (      *execp      ).a_text - (4 + 4  * 7)  : (((       *execp       ).a_info & 0xffff)  != 0413  || 0 ) ? (      *execp      ).a_text : 1   ?	(      *execp      ).a_text - (4 + 4  * 7) :	(      *execp      ).a_text	) )  + (    *execp    ).a_data )  + (   *execp   ).a_trsize )  + (  *execp  ).a_drsize )  + ( *execp ).a_syms ) ;
  
   



  bfd_default_set_arch_mach(abfd, bfd_arch_i386 , 0);


   



  (((  abfd  )->tdata.aout_data->a) .textsec) ->reloc_count =
    execp->a_trsize / (((  abfd  )->tdata.aout_data->a) .reloc_entry_size) ;
  (((  abfd  )->tdata.aout_data->a) .datasec) ->reloc_count =
    execp->a_drsize / (((  abfd  )->tdata.aout_data->a) .reloc_entry_size) ;

   





  arch_align_power = bfd_get_arch_info (abfd)->section_align_power;
  arch_align = 1 << arch_align_power;
  if ((((((bfd_vma) ( (((  abfd  )->tdata.aout_data->a) .textsec) ->_raw_size ) + (  arch_align ) - 1) >= (bfd_vma) ( (((  abfd  )->tdata.aout_data->a) .textsec) ->_raw_size ))	? (((bfd_vma) ( (((  abfd  )->tdata.aout_data->a) .textsec) ->_raw_size ) + ((  arch_align ) - 1)) & (~((  arch_align )-1)))	: ~ (bfd_vma) 0) 
       == (((  abfd  )->tdata.aout_data->a) .textsec) ->_raw_size)
      && (((((bfd_vma) ( (((  abfd  )->tdata.aout_data->a) .datasec) ->_raw_size ) + (  arch_align ) - 1) >= (bfd_vma) ( (((  abfd  )->tdata.aout_data->a) .datasec) ->_raw_size ))	? (((bfd_vma) ( (((  abfd  )->tdata.aout_data->a) .datasec) ->_raw_size ) + ((  arch_align ) - 1)) & (~((  arch_align )-1)))	: ~ (bfd_vma) 0) 
	  == (((  abfd  )->tdata.aout_data->a) .datasec) ->_raw_size)
      && (((((bfd_vma) ( (((  abfd  )->tdata.aout_data->a) .bsssec) ->_raw_size ) + (  arch_align ) - 1) >= (bfd_vma) ( (((  abfd  )->tdata.aout_data->a) .bsssec) ->_raw_size ))	? (((bfd_vma) ( (((  abfd  )->tdata.aout_data->a) .bsssec) ->_raw_size ) + ((  arch_align ) - 1)) & (~((  arch_align )-1)))	: ~ (bfd_vma) 0) 
	  == (((  abfd  )->tdata.aout_data->a) .bsssec) ->_raw_size))
    {
      (((  abfd  )->tdata.aout_data->a) .textsec) ->alignment_power = arch_align_power;
      (((  abfd  )->tdata.aout_data->a) .datasec) ->alignment_power = arch_align_power;
      (((  abfd  )->tdata.aout_data->a) .bsssec) ->alignment_power = arch_align_power;
    }

   







  return abfd->xvec;
}


# 198 "aout-target.h"





static boolean  plan9_i386_mkobject      (bfd *)  ;

static boolean
 plan9_i386_mkobject     (abfd)
     bfd *abfd;
{
  if (  aout_32_mkobject    (abfd) == false)
    return false;






  return true;
}





 





static boolean MY_bfd_copy_private_section_data
   (bfd *, asection *, bfd *, asection *)  ;

 
static boolean
MY_bfd_copy_private_section_data (ibfd, isec, obfd, osec)
     bfd *ibfd;
     asection *isec __attribute__ ((__unused__)) ;
     bfd *obfd;
     asection *osec __attribute__ ((__unused__)) ;
{
  if ((( ibfd )->xvec->flavour)  == bfd_target_aout_flavour
      && (( obfd )->xvec->flavour)  == bfd_target_aout_flavour)
    (((  obfd  )->tdata.aout_data->a) .subformat)  = (((  ibfd  )->tdata.aout_data->a) .subformat) ;
  return true;
}



 



# 268 "aout-target.h"




static boolean  plan9_i386_set_sizes      (bfd *)  ;

static boolean
 plan9_i386_set_sizes     (abfd)
     bfd *abfd;
{
  (( abfd )->tdata.aout_data->a) .page_size = 4096 ;
  (( abfd )->tdata.aout_data->a) .segment_size = 4096  ;


  (( abfd )->tdata.aout_data->a) .zmagic_disk_block_size = 4096  ;




  (( abfd )->tdata.aout_data->a) .exec_bytes_size = (4 + 4  * 7) ;
  return true;
}







# 346 "aout-target.h"




 

static void MY_final_link_callback
   (bfd *, file_ptr *, file_ptr *, file_ptr *)  ;

static void
MY_final_link_callback (abfd, ptreloff, pdreloff, psymoff)
     bfd *abfd;
     file_ptr *ptreloff;
     file_ptr *pdreloff;
     file_ptr *psymoff;
{
  struct internal_exec *execp = (((  abfd  )->tdata.aout_data->a) .hdr) ;

  *ptreloff = ( (( ((    *execp    ).a_info & 0xffff)  != 0413  ? (4 + 4  * 7)  : 0  ? 0 : 1  ?	(4 + 4  * 7)  :	4096  	)  + ( (((     *execp     ).a_info & 0xffff)  == ((((4* 11 )+0)* 11 )+7)   )  ? (   *execp   ).a_text - (4 + 4  * 7)  : (((    *execp    ).a_info & 0xffff)  != 0413  || 0 ) ? (   *execp   ).a_text : 1   ?	(   *execp   ).a_text - (4 + 4  * 7) :	(   *execp   ).a_text	) )  + ( *execp ).a_data ) ;
  *pdreloff = ( ( (( ((     *execp     ).a_info & 0xffff)  != 0413  ? (4 + 4  * 7)  : 0  ? 0 : 1  ?	(4 + 4  * 7)  :	4096  	)  + ( (((      *execp      ).a_info & 0xffff)  == ((((4* 11 )+0)* 11 )+7)   )  ? (    *execp    ).a_text - (4 + 4  * 7)  : (((     *execp     ).a_info & 0xffff)  != 0413  || 0 ) ? (    *execp    ).a_text : 1   ?	(    *execp    ).a_text - (4 + 4  * 7) :	(    *execp    ).a_text	) )  + (  *execp  ).a_data )  + ( *execp ).a_trsize ) ;
  *psymoff = ( ( ( (( ((      *execp      ).a_info & 0xffff)  != 0413  ? (4 + 4  * 7)  : 0  ? 0 : 1  ?	(4 + 4  * 7)  :	4096  	)  + ( (((       *execp       ).a_info & 0xffff)  == ((((4* 11 )+0)* 11 )+7)   )  ? (     *execp     ).a_text - (4 + 4  * 7)  : (((      *execp      ).a_info & 0xffff)  != 0413  || 0 ) ? (     *execp     ).a_text : 1   ?	(     *execp     ).a_text - (4 + 4  * 7) :	(     *execp     ).a_text	) )  + (   *execp   ).a_data )  + (  *execp  ).a_trsize )  + ( *execp ).a_drsize ) ;
}





 


static boolean MY_bfd_final_link  (bfd *, struct bfd_link_info *)  ;

static boolean
MY_bfd_final_link (abfd, info)
     bfd *abfd;
     struct bfd_link_info *info;
{
  return   aout_32_final_link     (abfd, info, MY_final_link_callback);
}



 
































 

































































































































































 




 




# 649 "aout-target.h"

# 65 "plan9-i386.c" 2


static const  struct aout_backend_data  plan9_i386_backend_data     = {
	0,	 
	1,	 
	0,	 
	0,	 
	0x1020,	 
	 plan9_i386_set_sizes     ,
	0,	 
	0,	 
	0,	 
	0,	 
	 plan9_i386_write_dynamic_symbol    ,
	0,	 
	0,	 
};

 



static boolean
 plan9_i386_write_object_contents     (abfd)
     bfd *abfd;
{
	struct external_exec exec_bytes;
	struct internal_exec *execp = (((  abfd  )->tdata.aout_data->a) .hdr) ;
	bfd_size_type text_size;
	file_ptr text_end;

	 




	if (! abfd->output_has_begun)
		  aout_32_adjust_sizes_and_vmas     (abfd, &text_size, &text_end);

	switch (bfd_get_arch(abfd)) {
	case bfd_arch_i386:
		execp->a_info = ((((4* 11 )+0)* 11 )+7)  ;
		break;
	default:
		execp->a_info = 0;
		break;
	}

	if ((( abfd )->tdata.aout_data->a) .magic == undecided_magic)
		  aout_32_adjust_sizes_and_vmas     (abfd, &text_size, &text_end);

	 
	execp->a_text -= 0x20;

	execp->a_syms = (((  abfd  )->tdata.aout_data->a) .sym_filepos) - ( ( ( (( ((      *execp      ).a_info & 0xffff)  != 0413  ? (4 + 4  * 7)  : 0  ? 0 : 1  ?	(4 + 4  * 7)  :	4096  	)  + ( (((       *execp       ).a_info & 0xffff)  == ((((4* 11 )+0)* 11 )+7)   )  ? (     *execp     ).a_text - (4 + 4  * 7)  : (((      *execp      ).a_info & 0xffff)  != 0413  || 0 ) ? (     *execp     ).a_text : 1   ?	(     *execp     ).a_text - (4 + 4  * 7) :	(     *execp     ).a_text	) )  + (   *execp   ).a_data )  + (  *execp  ).a_trsize )  + ( *execp ).a_drsize ) ;
	execp->a_trsize = 0;
	execp->a_drsize = 0;
	execp->a_entry = (( abfd )->start_address) ;

	  aout_32_swap_exec_header_out     (abfd, execp, &exec_bytes);

	if (bfd_seek (abfd, (file_ptr) 0, 0 ) != 0) return false;
	if (bfd_write ((void * ) &exec_bytes, 1, (4 + 4  * 7) , abfd) != (4 + 4  * 7) )
		return false;

	return true;
}

 

static const bfd_target *
some_plan9_object_p (abfd, execp, callback_to_real_object_p)
     bfd *abfd;
     struct internal_exec *execp;
     const bfd_target *(*callback_to_real_object_p)  (bfd *)  ;
{
  struct aout_data_struct *rawptr, *oldrawptr;
  const bfd_target *result;

  rawptr = (struct aout_data_struct  *) bfd_zalloc (abfd, sizeof (struct aout_data_struct ));
  if (rawptr == ((void *)0) )
    return 0;

  oldrawptr = abfd->tdata.aout_data;
  abfd->tdata.aout_data = rawptr;

   



  if (oldrawptr != ((void *)0) )
    *abfd->tdata.aout_data = *oldrawptr;

  abfd->tdata.aout_data->a.hdr = &rawptr->e;
  *(abfd->tdata.aout_data->a.hdr) = *execp;	 
  execp = abfd->tdata.aout_data->a.hdr;

   
  abfd->flags = 0x00 ;
  if (execp->a_drsize || execp->a_trsize)
    abfd->flags |= 0x01 ;
   
  if (execp->a_syms)
    abfd->flags |= 0x04  | 0x08  | 0x10  | 0x20 ;
  if ((( *execp ).a_info & 0x80000000) )
    abfd->flags |= 0x40 ;

      (( abfd )->tdata.aout_data->a) .magic = z_magic;

  (( abfd )->start_address)  = execp->a_entry;

  (((  abfd  )->tdata.aout_data->a) .symbols)  = (aout_symbol_type *)((void *)0) ;
  (( abfd )->symcount)  = execp->a_syms / sizeof (struct external_nlist);	 

   
  (((  abfd  )->tdata.aout_data->a) .reloc_entry_size)  = (4  + 3 + 1) ;

   
  (((  abfd  )->tdata.aout_data->a) .symbol_entry_size)  = (4 +4+ 4 ) ;





  (((  abfd  )->tdata.aout_data->a) .external_syms)  = ((void *)0) ;
  (((  abfd  )->tdata.aout_data->a) .external_strings)  = ((void *)0) ;
  (((  abfd  )->tdata.aout_data->a) .sym_hashes)  = ((void *)0) ;

  if (!   aout_32_make_sections     (abfd))
    return ((void *)0) ;

  (((  abfd  )->tdata.aout_data->a) .datasec) ->_raw_size = execp->a_data;
  (((  abfd  )->tdata.aout_data->a) .bsssec) ->_raw_size = execp->a_bss;

  (((  abfd  )->tdata.aout_data->a) .textsec) ->flags =
    (execp->a_trsize != 0
     ? (0x001  | 0x002  | 0x020  | 0x200  | 0x004 )
     : (0x001  | 0x002  | 0x020  | 0x200 ));
  (((  abfd  )->tdata.aout_data->a) .datasec) ->flags =
    (execp->a_drsize != 0
     ? (0x001  | 0x002  | 0x040  | 0x200  | 0x004 )
     : (0x001  | 0x002  | 0x040  | 0x200 ));
  (((  abfd  )->tdata.aout_data->a) .bsssec) ->flags = 0x001 ;

  result = (*callback_to_real_object_p) (abfd);

   














  if (execp->a_entry != 0
      || (execp->a_entry >= (((  abfd  )->tdata.aout_data->a) .textsec) ->vma
	  && execp->a_entry < (((  abfd  )->tdata.aout_data->a) .textsec) ->vma + (((  abfd  )->tdata.aout_data->a) .textsec) ->_raw_size))
    abfd->flags |= 0x02 ;
# 248 "plan9-i386.c"


  if (result)
    {





    }
  else
    {
      free (rawptr);
      abfd->tdata.aout_data = oldrawptr;
    }
  return result;
}

static const bfd_target *  plan9_i386_object_p      (bfd *)  ;

static const bfd_target *
 plan9_i386_object_p     (abfd)
     bfd *abfd;
{
	struct external_exec exec_bytes;	 
	struct internal_exec exec;		 
	const bfd_target *target;

	if (bfd_read ((void * ) &exec_bytes, 1, (4 + 4  * 7) , abfd) != (4 + 4  * 7) ) {
		if (bfd_get_error () != bfd_error_system_call)
			bfd_set_error (bfd_error_wrong_format);
		return 0;
	}

	exec.a_info = ((*((  abfd  )->xvec->  bfd_h_getx32 ))  (  exec_bytes.e_info ) )  ;

	if ((((  exec  ).a_info & 0xffff)  != ((((4* 11 )+0)* 11 )+7)  ) )
		return 0;

	  aout_32_swap_exec_header_in     (abfd, &exec_bytes, &exec);
	target = some_plan9_object_p (abfd, &exec,  plan9_i386_callback    );
	return target;
}

static boolean
 plan9_i386_write_dynamic_symbol     (output_bfd, info, h)
     bfd *output_bfd;
     struct bfd_link_info *info;
     struct aout_link_hash_entry *h;
{
 
	int type, n;
	bfd_vma val;
	asection *sec;
	char buf[256];

	if (h->written)
		return true;

	h->written = true;

	 
	if (h->indx != -2
		&& (info->strip == strip_all
		|| (info->strip == strip_some
		&& bfd_hash_lookup (info->keep_hash, h->root.root.string,
				false, false) == ((void *)0) )))
		return true;
	switch (h->root.type) {
	default:
		_bfd_abort ("plan9-i386.c", 318, __PRETTY_FUNCTION__) ;
		return true;
	case bfd_link_hash_new:
		 

		return true;
	case bfd_link_hash_defined:
	case bfd_link_hash_defweak:
		sec = h->root.u.def.section->output_section;
		{ if (!( (( sec ) == ((asection *) &bfd_abs_section) )  || sec->owner == output_bfd )) bfd_assert("plan9-i386.c",327); } ;
		if (sec == (((  output_bfd  )->tdata.aout_data->a) .textsec) )
			type = 'T';
		else if (sec == (((  output_bfd  )->tdata.aout_data->a) .datasec) )
			type = 'D';
		else if (sec == (((  output_bfd  )->tdata.aout_data->a) .bsssec) )
			type = 'B';
		else
			return true;
		val = (h->root.u.def.value + sec->vma + h->root.u.def.section->output_offset);
		break;
	case bfd_link_hash_common:
		type = 0  | 1 ;
		val = h->root.u.c.size;
 
	case bfd_link_hash_undefweak:
	case bfd_link_hash_undefined:
		return true;
	case bfd_link_hash_indirect:
	case bfd_link_hash_warning:
		 

		return true;
	}

	n = strlen(h->root.root.string);
	if(n+6 > (int)sizeof(buf))
		return true;
	((*((  output_bfd  )->xvec->  bfd_h_putx32 ))  (  val ,  buf ) )  ;
	buf[4] = type | 0x80;
	memcpy(&buf[5], h->root.root.string, n+1);
	n += 6;

	if (bfd_seek (output_bfd, (((  output_bfd  )->tdata.aout_data->a) .sym_filepos) , 0 ) != 0
		|| (int)bfd_write ((void * ) buf, (bfd_size_type) n, (bfd_size_type) 1, output_bfd) != n)
		return false;

	(((  output_bfd  )->tdata.aout_data->a) .sym_filepos)  += n;
	h->indx = (((  output_bfd  )->tdata.aout_data->a) .external_sym_count) ;
	++ (((  output_bfd  )->tdata.aout_data->a) .external_sym_count) ;

	return true;
}

static boolean
 plan9_i386_slurp_symbol_table     (abfd)
     bfd *abfd;
{
	aout_symbol_type *cached;
	size_t cached_size;
	unsigned char *syms, *p, *ep;
	int i, n, nsyms;
	asection *sec;

	 
	if ((((  abfd  )->tdata.aout_data->a) .symbols)  != ((void *)0) )
		return true;

	n = (((  abfd  )->tdata.aout_data->a) .hdr) ->a_syms;
	if(n == 0)
		return true;
	syms = bfd_malloc(n);
	if (syms == ((void *)0) )
		return false;
	if (bfd_seek (abfd, (((  abfd  )->tdata.aout_data->a) .sym_filepos) , 0 ) != 0
	|| ((int)bfd_read (syms, 1, n , abfd) != n )) {
		free (syms);
		return false;
	}
	p = syms;
	ep = p+n;
	nsyms = 0;
	for(;;) {
		p += 5;
		while(p < ep && *p != '\0')
			p++;
		nsyms++;
	}
	(( abfd )->symcount)  = nsyms;
	(((  abfd  )->tdata.aout_data->a) .external_sym_count)  = nsyms;

	cached_size = (nsyms * sizeof (aout_symbol_type));
	cached = (aout_symbol_type *) bfd_malloc (cached_size);
	if (cached == ((void *)0)  && cached_size != 0)
		return false;
	if (cached_size != 0)
		memset (cached, 0, cached_size);

 	p = syms;
	for(i = 0; i < nsyms; i++) {
		cached[i].symbol.value = ((*((  abfd  )->xvec->  bfd_h_getx32 ))  (  p ) )  ;
		cached[i].symbol.name = strdup(&p[5]);
		switch(p[4] & ~0x80) {
		case 'T':
		case 'L':
			cached[i].symbol.flags = 0x02 ;
			sec = (((  abfd  )->tdata.aout_data->a) .textsec) ;
		case 't':
		case 'l':
			cached[i].symbol.flags = 0x01 ;
			sec = (((  abfd  )->tdata.aout_data->a) .textsec) ;
		case 'D':
			cached[i].symbol.flags = 0x02 ;
			sec = (((  abfd  )->tdata.aout_data->a) .datasec) ;
		case 'd':
			cached[i].symbol.flags = 0x01 ;
			sec = (((  abfd  )->tdata.aout_data->a) .datasec) ;
		case 'B':
			cached[i].symbol.flags = 0x02 ;
			sec = (((  abfd  )->tdata.aout_data->a) .bsssec) ;
		case 'b':
			cached[i].symbol.flags = 0x01 ;
			sec = (((  abfd  )->tdata.aout_data->a) .bsssec) ;
		}
		cached[i].symbol.value -= sec->vma;
	}

	(((  abfd  )->tdata.aout_data->a) .symbols)  = cached;
	free(syms);
	return true;
}

long
 plan9_i386_get_symtab     (abfd, location)
     bfd *abfd;
     asymbol **location;
{
	int i;
	aout_symbol_type *s;

	if (!  plan9_i386_slurp_symbol_table    (abfd))
		return -1;

	s = (((  abfd  )->tdata.aout_data->a) .symbols) ;
	for (i = 0; i < (int) (( abfd )->symcount) ; i++)
		*(location++) = (asymbol *)(s++);
	*location++ =0;
	return (( abfd )->symcount) ;
}

long
 plan9_i386_get_symtab_upper_bound     (abfd)
     bfd *abfd;
{
	if (!  plan9_i386_slurp_symbol_table    (abfd))
		return -1;

	return ((( abfd )->symcount) +1) * (sizeof (aout_symbol_type *));
}

 

const bfd_target  plan9_i386_vec     =
{
  "plan9-i386" ,		 
  bfd_target_aout_flavour,		 



  BFD_ENDIAN_LITTLE,		 

  BFD_ENDIAN_BIG,		 
  (0x01  | 0x02  |		 
   0x04  | 0x08  |
   0x10  | 0x20  | 0x40  | 0x80  | 0x100 ),
  (0x200  | 0x001  | 0x002  | 0x004  | 0x020  | 0x040 ),
  '\0' ,
  ' ' ,			 
  15,				 





  bfd_getl64, bfd_getl_signed_64, bfd_putl64,
     bfd_getl32, bfd_getl_signed_32, bfd_putl32,
     bfd_getl16, bfd_getl_signed_16, bfd_putl16,  

  bfd_getb64, bfd_getb_signed_64, bfd_putb64,
     bfd_getb32, bfd_getb_signed_32, bfd_putb32,
     bfd_getb16, bfd_getb_signed_16, bfd_putb16,  
    {_bfd_dummy_target,  plan9_i386_object_p     ,  
       bfd_generic_archive_p, _bfd_dummy_target },
    {bfd_false,  plan9_i386_mkobject     ,	 
       _bfd_generic_mkarchive, bfd_false},
    {bfd_false,  plan9_i386_write_object_contents     ,  
       _bfd_write_archive_contents, bfd_false},

         aout_32_bfd_free_cached_info        ,    aout_32_bfd_free_cached_info       ,    aout_32_new_section_hook       ,    _bfd_generic_get_section_contents        ,  _bfd_generic_get_section_contents_in_window    ,
       ((boolean (*)  (bfd *, bfd *)  ) bfd_true)    ,  ((boolean (*)  (bfd *, bfd *)  ) bfd_true)    ,  MY_bfd_copy_private_section_data  ,  ((boolean (*)  (bfd *, asymbol *, bfd *, asymbol *)  ) bfd_true)    ,  ((boolean (*)  (bfd *, flagword)  ) bfd_true)    ,  ((boolean (*)  (bfd *, void * )  ) bfd_true)     ,			 
       _bfd_nocore_core_file_failing_command   ,  _bfd_nocore_core_file_failing_signal   ,  _bfd_nocore_core_file_matches_executable_p    ,			 
       bfd_slurp_armap    ,  _bfd_slurp_extended_name_table   ,  _bfd_archive_bsd_construct_extended_name_table   ,  bfd_bsd_truncate_arname   ,  bsd_write_armap   ,  _bfd_generic_read_ar_hdr   ,  bfd_generic_openr_next_archived_file   ,  _bfd_generic_get_elt_at_index   ,  bfd_generic_stat_arch_elt   ,  _bfd_archive_bsd_update_armap_timestamp    ,		 
       CAT(plan9_i386_, get_symtab_upper_bound )    ,  CAT(plan9_i386_, get_symtab )    ,    aout_32_make_empty_symbol       ,    aout_32_print_symbol       ,    aout_32_get_symbol_info       ,  bfd_generic_is_local_label_name   ,    aout_32_get_lineno       ,    aout_32_find_nearest_line       ,  0   ,    aout_32_read_minisymbols       ,    aout_32_minisymbol_to_symbol        ,
         aout_32_get_reloc_upper_bound       ,    aout_32_canonicalize_reloc       ,    aout_32_reloc_type_lookup        ,			 
         aout_32_set_arch_mach       ,    aout_32_set_section_contents        ,
         aout_32_sizeof_headers       ,  bfd_generic_get_relocated_section_contents   ,  bfd_generic_relax_section   ,    aout_32_link_hash_table_create       ,    aout_32_link_add_symbols       ,  MY_bfd_final_link  ,  _bfd_generic_link_split_section   ,  bfd_generic_gc_sections    ,
       _bfd_n1    ,  ((long (*)  (bfd *, asymbol **)  ) _bfd_n1)    ,  _bfd_n1    ,  ((long (*)  (bfd *, arelent **, asymbol **)  ) _bfd_n1)     ,		 

   
  ((void *)0) ,

  (void * ) &  plan9_i386_backend_data     
};
