Back to index

cell-binutils  2.17cvs20070401
obj-aout.h
Go to the documentation of this file.
00001 /* obj-aout.h, a.out object file format for gas, the assembler.
00002    Copyright 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998, 2000,
00003    2002, 2003, 2005 Free Software Foundation, Inc.
00004 
00005    This file is part of GAS, the GNU Assembler.
00006 
00007    GAS is free software; you can redistribute it and/or modify
00008    it under the terms of the GNU General Public License as
00009    published by the Free Software Foundation; either version 2,
00010    or (at your option) any later version.
00011 
00012    GAS is distributed in the hope that it will be useful, but
00013    WITHOUT ANY WARRANTY; without even the implied warranty of
00014    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See
00015    the GNU General Public License for more details.
00016 
00017    You should have received a copy of the GNU General Public License
00018    along with GAS; see the file COPYING.  If not, write to the Free
00019    Software Foundation, 51 Franklin Street - Fifth Floor, Boston, MA
00020    02110-1301, USA.  */
00021 
00022 /* Tag to validate a.out object file format processing */
00023 #define OBJ_AOUT 1
00024 
00025 #include "targ-cpu.h"
00026 
00027 #include "bfd/libaout.h"
00028 
00029 #define OUTPUT_FLAVOR bfd_target_aout_flavour
00030 
00031 extern const pseudo_typeS aout_pseudo_table[];
00032 
00033 #ifndef obj_pop_insert
00034 #define obj_pop_insert() pop_insert (aout_pseudo_table)
00035 #endif
00036 
00037 /* Symbol table entry data type.  */
00038 
00039 typedef struct nlist obj_symbol_type;     /* Symbol table entry.  */
00040 
00041 /* Symbol table macros and constants */
00042 
00043 #define S_SET_OTHER(S,V) \
00044   (aout_symbol (symbol_get_bfdsym (S))->other = (V))
00045 #define S_SET_TYPE(S,T) \
00046   (aout_symbol (symbol_get_bfdsym (S))->type = (T))
00047 #define S_SET_DESC(S,D)     \
00048   (aout_symbol (symbol_get_bfdsym (S))->desc = (D))
00049 #define S_GET_OTHER(S) \
00050   (aout_symbol (symbol_get_bfdsym (S))->other)
00051 #define S_GET_TYPE(S) \
00052   (aout_symbol (symbol_get_bfdsym (S))->type)
00053 #define S_GET_DESC(S) \
00054   (aout_symbol (symbol_get_bfdsym (S))->desc)
00055 
00056 asection *text_section, *data_section, *bss_section;
00057 
00058 #define obj_frob_symbol(S,PUNT)    obj_aout_frob_symbol (S, &PUNT)
00059 #define obj_frob_file_before_fix() obj_aout_frob_file_before_fix ()
00060 
00061 extern void obj_aout_frob_symbol (symbolS *, int *);
00062 extern void obj_aout_frob_file_before_fix (void);
00063 
00064 #define obj_sec_sym_ok_for_reloc(SEC)     1
00065 
00066 #define obj_read_begin_hook()      {;}
00067 #define obj_symbol_new_hook(s)     {;}
00068 
00069 #define EMIT_SECTION_SYMBOLS              0
00070 
00071 #define AOUT_STABS