* 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
3 changed files with 21 additions and 0 deletions
|
@ -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>
|
2001-01-13 Philip Blundell <philb@gnu.org>
|
||||||
|
|
||||||
* doc/as.texinfo: Fix spelling and cross-references.
|
* doc/as.texinfo: Fix spelling and cross-references.
|
||||||
|
|
|
@ -778,6 +778,19 @@ static struct hash_control *op_hash;
|
||||||
/* Hash table for register lookup. */
|
/* Hash table for register lookup. */
|
||||||
static struct hash_control *reg_hash;
|
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
|
void
|
||||||
md_begin ()
|
md_begin ()
|
||||||
{
|
{
|
||||||
|
|
|
@ -72,6 +72,8 @@ extern int tc_i386_fix_adjustable PARAMS ((struct fix *));
|
||||||
&& ! S_IS_COMMON ((FIX)->fx_addsy))))
|
&& ! S_IS_COMMON ((FIX)->fx_addsy))))
|
||||||
|
|
||||||
#define TARGET_ARCH bfd_arch_i386
|
#define TARGET_ARCH bfd_arch_i386
|
||||||
|
#define TARGET_MACH (i386_mach ())
|
||||||
|
extern unsigned long i386_mach PARAMS ((void));
|
||||||
|
|
||||||
#ifdef TE_NetBSD
|
#ifdef TE_NetBSD
|
||||||
#define AOUT_TARGET_FORMAT "a.out-i386-netbsd"
|
#define AOUT_TARGET_FORMAT "a.out-i386-netbsd"
|
||||||
|
|
Loading…
Add table
Reference in a new issue