From owner-freebsd-sparc Mon Nov 30 23:02:29 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id XAA22715 for freebsd-sparc-outgoing; Mon, 30 Nov 1998 23:02:29 -0800 (PST) (envelope-from owner-freebsd-sparc@FreeBSD.ORG) Received: from tapti.hss.hns.com (tapti.hss.hns.com [139.85.242.19]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id XAA22703 for ; Mon, 30 Nov 1998 23:02:19 -0800 (PST) (envelope-from kchowksey@hss.hns.com) Received: from tarang.hss.hns.com (tarang.hss.hns.com [139.85.242.33]) by tapti.hss.hns.com (8.8.8/8.8.8) with ESMTP id NAA16865; Tue, 1 Dec 1998 13:14:20 +0530 (IST) Received: (from kchowksey@localhost) by tarang.hss.hns.com (8.8.2/8.7.3) id KAA14386; Tue, 1 Dec 1998 10:20:08 +0530 (IST) Date: Tue, 1 Dec 1998 10:20:08 +0530 (IST) Message-Id: <199812010450.KAA14386@tarang.hss.hns.com> From: Kapil Chowksey MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit To: Alfred Perlstein Cc: freebsd-sparc@FreeBSD.ORG Subject: Re: [Ultra] Compiler, again In-Reply-To: References: <199811301830.NAA17927@jhicks.glenatl.glenayre.com> X-Mailer: VM 6.34 under Emacs 19.34.1 Sender: owner-freebsd-sparc@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.org On Mon, 30 November, Alfred Perlstein wrote: > I have 2.7.2.2 cross compiling from i386->sparc64elf along with the > binutils. Did you apply this patch ? --- config/sparc/sp64-elf.h~ Thu Apr 2 15:22:46 1998 +++ config/sparc/sp64-elf.h Sat Aug 22 13:37:01 1998 @@ -35,19 +35,19 @@ #undef TARGET_VERSION #define TARGET_VERSION fprintf (stderr, " (sparc64-elf)") -/* A v9 compiler with stack-bias, 32 bit integers and 64 bit pointers, - in a Medium/Anywhere code model environment. */ +/* A v9 compiler with stack-bias, 32 bit integers, 64 bit longs and + 64 bit pointers, in a Medium/Anywhere code model environment. */ #undef TARGET_DEFAULT #define TARGET_DEFAULT \ - (MASK_V9 + MASK_ARCH64 + MASK_PTR64 /* + MASK_HARD_QUAD */ \ + (MASK_V9 + MASK_ARCH64 + MASK_LONG64 + MASK_PTR64 + MASK_HARD_QUAD \ + MASK_STACK_BIAS + MASK_MEDANY + MASK_APP_REGS + MASK_EPILOGUE + MASK_FPU) /* __svr4__ is used by the C library */ /* ??? __arch64__ is subject to change. */ #undef CPP_PREDEFINES #define CPP_PREDEFINES "\ --D__sparc__ -D__sparc_v9__ -D__arch64__ -D__svr4__ \ +-D__sparc__ -D__sparc_v9__ -D__arch64__ -D__svr4__ -D__ELF__ \ -Acpu(sparc64) -Amachine(sparc64) \ " > I'm going to figure out how to do a 'hello world' type thing to make > sure it works then put the toolchain up on cvs later this week. > > The problem i sorta have is that i have to figure out a way to trick > solaris into running these 'unbranded' binaries, perhaps i'll build the > toolchain on both boxes then try to link in a .o compiled on my i386 box > with one compiled on my ultra. Any better ideas? If you are testing your toolchain with solaris, you had better have solaris 7. If you don't, then I can send you an OpenBoot client program for hello world which you can test with by booting it via tftpboot. -- Kapil Chowksey Viva GNU ! kchowksey@hss.hns.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-sparc" in the body of the message