mirror of
https://frontier.innolan.net/github/amigaos-binutils.git
synced 2025-11-24 03:46:50 +00:00
Override m68k_aout_machtype value when building an amiga target.
* gas/config/tc-m68k.c (TE_AMIGA): Provide a zero default. (FRAME): Check TE_AMIGA for zero/non-zero value. (m68k_init_after_args): Tweak m68k_aout_machtype for TE_AMIGA case.
This commit is contained in:
@ -33,6 +33,10 @@
|
||||
#include "elf/m68k.h"
|
||||
#endif
|
||||
|
||||
#ifndef TE_AMIGA
|
||||
#define TE_AMIGA 0
|
||||
#endif
|
||||
|
||||
#ifndef OBJ_AMIGAHUNK
|
||||
#define OBJ_AMIGAHUNK 0
|
||||
#endif
|
||||
@ -3410,7 +3414,7 @@ struct init_entry
|
||||
int number;
|
||||
};
|
||||
|
||||
#if defined(TE_AMIGA)
|
||||
#if TE_AMIGA
|
||||
#define FRAME ADDR5
|
||||
#else
|
||||
#define FRAME ADDR6
|
||||
@ -4139,7 +4143,9 @@ m68k_init_after_args ()
|
||||
|
||||
#ifdef OBJ_AOUT
|
||||
/* Work out the magic number. This isn't very general. */
|
||||
if (current_architecture & m68000)
|
||||
if (TE_AMIGA)
|
||||
m68k_aout_machtype = current_architecture & m68020 ? 2 : 1;
|
||||
else if (current_architecture & m68000)
|
||||
m68k_aout_machtype = 0;
|
||||
else if (current_architecture & m68010)
|
||||
m68k_aout_machtype = 1;
|
||||
|
||||
Reference in New Issue
Block a user