diff options
author | Ken Raeburn <raeburn@cygnus> | 1993-07-07 16:17:29 +0000 |
---|---|---|
committer | Ken Raeburn <raeburn@cygnus> | 1993-07-07 16:17:29 +0000 |
commit | 25c09bbf443f7b63dbdb0304c94e100f4ed0def7 (patch) | |
tree | 1d1f6e1cf04feb4c16cec91cf1fb57c559554a2f /gas | |
parent | 7d0ed38fc3a5c2c6993ca5dd35e51c7c581d99c6 (diff) | |
download | gdb-25c09bbf443f7b63dbdb0304c94e100f4ed0def7.zip gdb-25c09bbf443f7b63dbdb0304c94e100f4ed0def7.tar.gz gdb-25c09bbf443f7b63dbdb0304c94e100f4ed0def7.tar.bz2 |
Define ENV64 for sparc v9.
Diffstat (limited to 'gas')
-rw-r--r-- | gas/config/tc-sparc.h | 40 |
1 files changed, 33 insertions, 7 deletions
diff --git a/gas/config/tc-sparc.h b/gas/config/tc-sparc.h index 92b4837..c59870e 100644 --- a/gas/config/tc-sparc.h +++ b/gas/config/tc-sparc.h @@ -21,6 +21,27 @@ #define LOCAL_LABELS_FB +#ifdef BFD_ASSEMBLER + +#define TARGET_ARCH bfd_arch_sparc +#ifdef OBJ_AOUT +#define TARGET_FORMAT "a.out-sunos-big" +#endif +#ifdef OBJ_BOUT +#define TARGET_FORMAT "b.out.big" +#endif +#ifdef OBJ_ELF +#ifndef sparcv9 +#define TARGET_FORMAT "elf32-sparc" +#else /* sparcv9 */ +#define TARGET_FORMAT "elf64-sparc" /* v9 */ +#define ENV64 /* v9 */ +#endif /* sparcv9 */ +#define LOCAL_LABEL(name) ((name)[0] == '.') +#endif + +#else + #ifdef OBJ_BOUT #define DEFAULT_MAGIC_NUMBER_FOR_OBJECT_FILE ((0x103 << 16) | BMAGIC) /* Magic number for header */ #else @@ -31,18 +52,23 @@ #define AOUT_MACHTYPE 3 +#define NEED_FX_R_TYPE + #define tc_headers_hook(a) {;} /* don't need it. */ #define tc_crawl_symbol_chain(a) {;} /* don't need it. */ +#define TC_CONS_RELOC RELOC_32 + +#endif /* BFD_ASSEMBLER */ + +#ifndef BFD_ASSEMBLER +#define md_convert_frag(h,f) {as_fatal ("sparc convert_frag\n");} +#else +#define md_convert_frag(b,s,f) {as_fatal ("sparc convert_frag\n");} +#endif + void tc_aout_pre_write_hook (); #define LISTING_HEADER "SPARC GAS " -/* - * Local Variables: - * comment-column: 0 - * fill-column: 131 - * End: - */ - /* end of tc-sparc.h */ |