mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-18 12:24:38 +08:00
* tc-i386.h (TARGET_MACH): New macro.
(i386_mach): Declare. * tc-i386.c (i386_mach): New function.
This commit is contained in:
parent
332dac408a
commit
b9d79e0379
@ -1,3 +1,9 @@
|
||||
Sun Jan 14 00:36:42 MET 2001 Jan Hubicka <jh@suse.cz>
|
||||
|
||||
* tc-i386.h (TARGET_MACH): New macro.
|
||||
(i386_mach): Declare.
|
||||
* tc-i386.c (i386_mach): New function.
|
||||
|
||||
2001-01-13 Philip Blundell <philb@gnu.org>
|
||||
|
||||
* doc/as.texinfo: Fix spelling and cross-references.
|
||||
|
@ -778,6 +778,19 @@ static struct hash_control *op_hash;
|
||||
/* Hash table for register lookup. */
|
||||
static struct hash_control *reg_hash;
|
||||
|
||||
#ifdef BFD_ASSEMBLER
|
||||
unsigned long
|
||||
i386_mach ()
|
||||
{
|
||||
if (!strcmp (default_arch, "x86_64"))
|
||||
return bfd_mach_x86_64;
|
||||
else if (!strcmp (default_arch, "i386"))
|
||||
return bfd_mach_i386_i386;
|
||||
else
|
||||
as_fatal (_("Unknown architecture"));
|
||||
}
|
||||
#endif
|
||||
|
||||
void
|
||||
md_begin ()
|
||||
{
|
||||
|
@ -72,6 +72,8 @@ extern int tc_i386_fix_adjustable PARAMS ((struct fix *));
|
||||
&& ! S_IS_COMMON ((FIX)->fx_addsy))))
|
||||
|
||||
#define TARGET_ARCH bfd_arch_i386
|
||||
#define TARGET_MACH (i386_mach ())
|
||||
extern unsigned long i386_mach PARAMS ((void));
|
||||
|
||||
#ifdef TE_NetBSD
|
||||
#define AOUT_TARGET_FORMAT "a.out-i386-netbsd"
|
||||
|
Loading…
Reference in New Issue
Block a user