Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 1 Dec 1998 10:20:08 +0530 (IST)
From:      Kapil Chowksey <kchowksey@hss.hns.com>
To:        Alfred Perlstein <bright@hotjobs.com>
Cc:        freebsd-sparc@FreeBSD.ORG
Subject:   Re: [Ultra] Compiler, again 
Message-ID:  <199812010450.KAA14386@tarang.hss.hns.com>
In-Reply-To: <Pine.BSF.4.05.9811301344590.346-100000@bright.fx.genx.net>
References:  <199811301830.NAA17927@jhicks.glenatl.glenayre.com> <Pine.BSF.4.05.9811301344590.346-100000@bright.fx.genx.net>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199812010450.KAA14386>