034988c662
* configure.in: Add i386coff and i386elf to emulation list. * configure: Rebuild. * as.c (i386coff, i386elf): Declare. * obj.h (coff_format_ops): Declare. * config/obj-coff.c (OBJ_HEADER): Define. (coff_obj_symbol_new_hook): Rename from obj_symbol_new_hook. (coff_obj_read_begin_hook): Rename from obj_read_begin_hook. (obj_pseudo_table): Add "version". (coff_pop_insert): New static function. (coff_sec_sym_ok_for_reloc): New static function. (no_func): New static function. (coff_format_ops): New variable. * config/obj-coff.h (coff_obj_symbol_new_hook): Declare. (obj_symbol_new_hook): Define. (coff_obj_read_begin_hook): Declare. (obj_read_begin_hook): Define. * config/tc-i386.h (i386_target_format): Declare. * config/tc-i386.c: Check OBJ_MAYBE_ELF as well as OBJ_ELF; check OUTPUT_FLAVOR when appropriate. (i386_target_format): New function. * Makefile.in (obj-coff.o): New target. (e-i386coff.o, e-i386elf.o): New targets.
18 lines
304 B
C
18 lines
304 B
C
#include "as.h"
|
|
#include "emul.h"
|
|
|
|
static const char *
|
|
i386coff_bfd_name ()
|
|
{
|
|
abort ();
|
|
return NULL;
|
|
}
|
|
|
|
#define emul_bfd_name i386coff_bfd_name
|
|
#define emul_format &coff_format_ops
|
|
|
|
#define emul_name "i386coff"
|
|
#define emul_struct_name i386coff
|
|
#define emul_default_endian 0
|
|
#include "emul-target.h"
|