diff options
| author | Oleksandr Tymoshenko <gonzo@FreeBSD.org> | 2012-03-23 19:37:45 +0000 |
|---|---|---|
| committer | Oleksandr Tymoshenko <gonzo@FreeBSD.org> | 2012-03-23 19:37:45 +0000 |
| commit | 5fc747bf782b511364e6424bb98c8fdd7d133a2d (patch) | |
| tree | 675a11174ba8256e5dc460aec8433c2a24b740af /gnu/usr.bin/binutils | |
| parent | ada977b1031fa880fd9ed245fae34d15f4f61423 (diff) | |
Notes
Diffstat (limited to 'gnu/usr.bin/binutils')
| -rw-r--r-- | gnu/usr.bin/binutils/as/Makefile | 7 | ||||
| -rw-r--r-- | gnu/usr.bin/binutils/as/mips-freebsd/itbl-cpu.h | 5 |
2 files changed, 11 insertions, 1 deletions
diff --git a/gnu/usr.bin/binutils/as/Makefile b/gnu/usr.bin/binutils/as/Makefile index 032248a50a304..bf8df81a8bfba 100644 --- a/gnu/usr.bin/binutils/as/Makefile +++ b/gnu/usr.bin/binutils/as/Makefile @@ -43,6 +43,13 @@ SRCS+= app.c \ .if ${TARGET_CPUARCH} == "mips" SRCS+= itbl-ops.c itbl-parse.y itbl-lex.l +.if ${TARGET_ARCH:Mmips64*} != "" +CFLAGS+= -DMIPS_DEFAULT_ABI=N64_ABI -DMIPS_DEFAULT_64BIT=1 +.elif ${TARGET_ARCH:Mmipsn32*} != "" +CFLAGS+= -DMIPS_DEFAULT_ABI=N32_ABI +.else +MIPS_ABI_DEFAULT=ABI_32 +.endif .endif .if ${TARGET_ARCH} == "amd64" diff --git a/gnu/usr.bin/binutils/as/mips-freebsd/itbl-cpu.h b/gnu/usr.bin/binutils/as/mips-freebsd/itbl-cpu.h index 7dbe96ec44fac..5e007d18e35ce 100644 --- a/gnu/usr.bin/binutils/as/mips-freebsd/itbl-cpu.h +++ b/gnu/usr.bin/binutils/as/mips-freebsd/itbl-cpu.h @@ -3,14 +3,17 @@ #include "itbl-mips.h" /* Choose a default ABI for MIPS targets. */ -/* XXX: Where should this be ? */ +#ifndef MIPS_DEFAULT_ABI #define MIPS_DEFAULT_ABI NO_ABI +#endif /* Default CPU for MIPS targets. */ #define MIPS_CPU_STRING_DEFAULT "from-abi" /* Generate 64-bit code by default on MIPS targets. */ +#ifndef MIPS_DEFAULT_64BIT #define MIPS_DEFAULT_64BIT 0 +#endif /* Allow use of E_MIPS_ABI_O32 on MIPS targets. */ #define USE_E_MIPS_ABI_O32 1 |
