From owner-p4-projects@FreeBSD.ORG Thu Jun 17 09:18:35 2004 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id B5A4516A4D0; Thu, 17 Jun 2004 09:18:34 +0000 (GMT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 88D0616A4CE for ; Thu, 17 Jun 2004 09:18:34 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6D21943D1D for ; Thu, 17 Jun 2004 09:18:34 +0000 (GMT) (envelope-from jmallett@freebsd.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i5H9HcrM024834 for ; Thu, 17 Jun 2004 09:17:38 GMT (envelope-from jmallett@freebsd.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i5H9Hb4g024831 for perforce@freebsd.org; Thu, 17 Jun 2004 09:17:37 GMT (envelope-from jmallett@freebsd.org) Date: Thu, 17 Jun 2004 09:17:37 GMT Message-Id: <200406170917.i5H9Hb4g024831@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to jmallett@freebsd.org using -f From: Juli Mallett To: Perforce Change Reviews Subject: PERFORCE change 55144 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 17 Jun 2004 09:18:35 -0000 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?