Date: Thu, 17 Jun 2004 09:17:37 GMT From: Juli Mallett <jmallett@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 55144 for review Message-ID: <200406170917.i5H9Hb4g024831@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=55144 Change 55144 by jmallett@jmallett_oingo on 2004/06/17 09:17:00 Take a stab at doing tranditional MIPS support for n32 ABI, and add support for shared stuff to ld's n32 config. Make AS use the N32 ABI. Make LD generate and use the new N32 tradmips stuff. Move BFD back to using ntradmips. Slash and hack ldscript. Untested. Affected files ... .. //depot/projects/mips/contrib/binutils/ld/emulparams/elf32bmipn32.sh#8 edit .. //depot/projects/mips/contrib/binutils/ld/emulparams/elf32btsmipn32.sh#1 add .. //depot/projects/mips/gnu/usr.bin/binutils/as/mips-freebsd/config.h#7 edit .. //depot/projects/mips/gnu/usr.bin/binutils/ld/Makefile.mips#10 edit .. //depot/projects/mips/gnu/usr.bin/binutils/libbfd/Makefile.mips#13 edit .. //depot/projects/mips/sys/conf/ldscript.mips#6 edit Differences ... ==== //depot/projects/mips/contrib/binutils/ld/emulparams/elf32bmipn32.sh#8 (text+ko) ==== @@ -10,7 +10,11 @@ BIG_OUTPUT_FORMAT="elf32-bigmips" LITTLE_OUTPUT_FORMAT="elf32-littlemips" +ARCH=mips +MACHINE= TEMPLATE_NAME=elf32 +EXTRA_EM_FILE=mipself +GENERATE_SHLIB_SCRIPT=yes TEXT_START_ADDR=0x10000000 MAXPAGESIZE=0x100000 ==== //depot/projects/mips/gnu/usr.bin/binutils/as/mips-freebsd/config.h#7 (text+ko) ==== @@ -171,7 +171,7 @@ #define MIPS_DEFAULT_64BIT 1 /* Choose a default ABI for MIPS targets. */ -#define MIPS_DEFAULT_ABI N64_ABI +#define MIPS_DEFAULT_ABI N32_ABI /* Default architecture. */ #define DEFAULT_ARCH "mips3" ==== //depot/projects/mips/gnu/usr.bin/binutils/ld/Makefile.mips#10 (text+ko) ==== @@ -3,8 +3,8 @@ TARGET_TUPLE= mips-jmallett-freebsd .if ${TARGET_ARCH} == "mips" -DEFAULT_EMULATION?= elf64btsmip -EMULATIONS= elf32btsmip elf32ltsmip elf64btsmip elf64ltsmip +DEFAULT_EMULATION?= elf32btsmipn32 +EMULATIONS= elf32btsmipn32 elf32btsmip elf32ltsmip elf64btsmip elf64ltsmip HOST= ${TARGET_TUPLE} CFLAGS+= -DDEFAULT_EMULATION=\"${DEFAULT_EMULATION}\" ==== //depot/projects/mips/gnu/usr.bin/binutils/libbfd/Makefile.mips#13 (text+ko) ==== @@ -1,6 +1,6 @@ # $FreeBSD$ -DEFAULT_VECTOR?= bfd_elf64_tradbigmips_vec +DEFAULT_VECTOR?= bfd_elf32_ntradbigmips_vec SRCS+= cpu-mips.c \ ecofflink.c \ ==== //depot/projects/mips/sys/conf/ldscript.mips#6 (text+ko) ==== @@ -1,6 +1,6 @@ /* $FreeBSD$ */ -OUTPUT_FORMAT("elf64-tradbigmips", "elf64-tradbigmips", "elf64-tradlittlemips") +OUTPUT_FORMAT("elf32-ntradbigmips", "elf32-ntradbigmips", "elf32-ntradlittlemips") OUTPUT_ARCH(mips) ENTRY(start) /* Do we need any of these for elf?
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200406170917.i5H9Hb4g024831>