2000-01-26 22:48:31 +00:00
|
|
|
/* Multiple object format emulation.
|
|
|
|
Copyright (C) 1995, 96, 97, 99, 2000
|
|
|
|
Free Software Foundation, Inc.
|
|
|
|
|
|
|
|
This file is part of GAS, the GNU Assembler.
|
|
|
|
|
|
|
|
GAS is free software; you can redistribute it and/or modify
|
|
|
|
it under the terms of the GNU General Public License as published by
|
|
|
|
the Free Software Foundation; either version 1, or (at your option)
|
|
|
|
any later version.
|
|
|
|
|
|
|
|
GAS is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
You should have received a copy of the GNU General Public License
|
|
|
|
along with GAS; see the file COPYING. If not, write to the Free
|
|
|
|
Software Foundation, 59 Temple Place - Suite 330, Boston, MA
|
|
|
|
02111-1307, USA. */
|
|
|
|
|
|
|
|
#ifndef _OBJ_MULTI_H
|
|
|
|
#define _OBJ_MULTI_H
|
|
|
|
|
|
|
|
#ifdef OBJ_HEADER
|
|
|
|
#include OBJ_HEADER
|
|
|
|
#else
|
1999-05-03 07:29:11 +00:00
|
|
|
|
|
|
|
#include "emul.h"
|
|
|
|
#include "targ-cpu.h"
|
|
|
|
|
1999-09-02 15:12:01 +00:00
|
|
|
#define OUTPUT_FLAVOR \
|
|
|
|
(this_format->flavor)
|
|
|
|
|
|
|
|
#define obj_frob_symbol(S,P) \
|
2000-01-26 22:48:31 +00:00
|
|
|
(*this_format->frob_symbol) (S, &(P))
|
1999-09-02 15:12:01 +00:00
|
|
|
|
|
|
|
#define obj_frob_file() \
|
|
|
|
(this_format->frob_file \
|
2000-01-26 22:48:31 +00:00
|
|
|
? (*this_format->frob_file) () \
|
1999-09-02 15:12:01 +00:00
|
|
|
: (void) 0)
|
|
|
|
|
2000-01-26 22:48:31 +00:00
|
|
|
#define obj_frob_file_after_relocs() \
|
|
|
|
(this_format->frob_file_after_relocs \
|
|
|
|
? (*this_format->frob_file_after_relocs) () \
|
|
|
|
: (void) 0)
|
1999-09-02 15:12:01 +00:00
|
|
|
|
|
|
|
#define obj_ecoff_set_ext \
|
2000-01-26 22:48:31 +00:00
|
|
|
(*this_format->ecoff_set_ext)
|
1999-09-02 15:12:01 +00:00
|
|
|
|
|
|
|
#define obj_pop_insert \
|
2000-01-26 22:48:31 +00:00
|
|
|
(*this_format->pop_insert)
|
1999-09-02 15:12:01 +00:00
|
|
|
|
|
|
|
#define obj_read_begin_hook() \
|
|
|
|
(this_format->read_begin_hook \
|
2000-01-26 22:48:31 +00:00
|
|
|
? (*this_format->read_begin_hook) () \
|
1999-09-02 15:12:01 +00:00
|
|
|
: (void) 0)
|
|
|
|
|
2000-01-26 22:48:31 +00:00
|
|
|
#define obj_symbol_new_hook(S) \
|
|
|
|
(this_format->symbol_new_hook \
|
|
|
|
? (*this_format->symbol_new_hook) (S) \
|
|
|
|
: (void) 0)
|
1999-09-02 15:12:01 +00:00
|
|
|
|
2000-01-26 22:48:31 +00:00
|
|
|
#define obj_sec_sym_ok_for_reloc(A) \
|
|
|
|
(this_format->sec_sym_ok_for_reloc \
|
|
|
|
? (*this_format->sec_sym_ok_for_reloc) (A) \
|
|
|
|
: 0)
|
1999-09-02 15:12:01 +00:00
|
|
|
|
|
|
|
#define S_GET_SIZE \
|
2000-01-26 22:48:31 +00:00
|
|
|
(*this_format->s_get_size)
|
1999-09-02 15:12:01 +00:00
|
|
|
|
|
|
|
#define S_SET_SIZE \
|
2000-01-26 22:48:31 +00:00
|
|
|
(*this_format->s_set_size)
|
1999-09-02 15:12:01 +00:00
|
|
|
|
|
|
|
#define S_GET_ALIGN \
|
2000-01-26 22:48:31 +00:00
|
|
|
(*this_format->s_get_align)
|
1999-09-02 15:12:01 +00:00
|
|
|
|
|
|
|
#define S_SET_ALIGN \
|
2000-01-26 22:48:31 +00:00
|
|
|
(*this_format->s_set_align)
|
|
|
|
|
|
|
|
#define S_GET_OTHER \
|
|
|
|
(*this_format->s_get_other)
|
|
|
|
|
|
|
|
#define S_GET_DESC \
|
|
|
|
(*this_format->s_get_desc)
|
1999-09-02 15:12:01 +00:00
|
|
|
|
|
|
|
#define OBJ_COPY_SYMBOL_ATTRIBUTES(d,s) \
|
|
|
|
(this_format->copy_symbol_attributes \
|
2000-01-26 22:48:31 +00:00
|
|
|
? (*this_format->copy_symbol_attributes) (d, s) \
|
1999-09-02 15:12:01 +00:00
|
|
|
: (void) 0)
|
|
|
|
|
|
|
|
#define OBJ_PROCESS_STAB(SEG,W,S,T,O,D) \
|
|
|
|
(this_format->process_stab \
|
2000-01-26 22:48:31 +00:00
|
|
|
? (*this_format->process_stab) (SEG,W,S,T,O,D) \
|
1999-09-02 15:12:01 +00:00
|
|
|
: (void) 0)
|
1999-05-03 07:29:11 +00:00
|
|
|
|
|
|
|
#ifdef OBJ_MAYBE_ELF
|
2000-01-26 22:48:31 +00:00
|
|
|
/* We need OBJ_SYMFIELD_TYPE so that symbol_get_obj is defined in symbol.c
|
|
|
|
We also need various STAB defines for stab.c */
|
1999-09-02 15:12:01 +00:00
|
|
|
#include "obj-elf.h"
|
1999-05-03 07:29:11 +00:00
|
|
|
#endif
|
2000-01-26 22:48:31 +00:00
|
|
|
|
|
|
|
#endif /* !OBJ_HEADER */
|
|
|
|
#endif /* _OBJ_MULTI_H */
|