Article View: gnu.gcc.help
Article #51863Re: tips on m88k build (XD88)
From: Kaveh R. Ghazi
Date: Mon, 15 Mar 1993 17:45
Date: Mon, 15 Mar 1993 17:45
126 lines
5061 bytes
5061 bytes
> Hi,
> I'm trying to build gcc 2.3.3 on a Tektronix XD88/35 (m88k, SYSVr3.2) and
> am having a heck of a time. I used the alloca.c out of Emacs like the docs
> suggest, and all the stage one modules compile, but when make runs 'enquire'
> it spits out massive amounts of garbage (mostly control characters).
> Any suggestions? Pointers?
> Thanks in advance.
> Steve Ward, Jr., System operator
The reason enquire spits out garbage is that is it not recognized
as an executable binary because its not in a proper format so an attempt is
made to run it under /bin/sh.
Here are context diffs I made for an XD88/10 running UTekV 3.2e for
gcc 2.3.3. Try them out, I'd be interested to know if they work on other
XD88 models besides the /10. (My XD88 port has been submitted for the next
release of gcc (v2.4) so it'll be available from now on.)
What UTekV version are you running?
--Kaveh
diff -c -r gcc-2.3.3/INSTALL xd88-gcc-2.3.3/INSTALL
*** gcc-2.3.3/INSTALL Sat Dec 26 04:53:55 1992
--- xd88-gcc-2.3.3/INSTALL Wed Feb 24 16:10:32 1993
***************
*** 286,291 ****
--- 286,311 ----
eval `sde-target m88kbcs`
+ `m88k-tekXD88'
+ On the Tektronix XD88, your compiler must explicitly pass the
+ file /lib/default.ld to ld during links. This file contains
+ directives to ld telling it how to handle the various sections of
+ your object files. Gcc knows to use this file, however you'll need
+ to modify it in order to make mention of the extra sections (e.g.
+ .tdesc) created by gcc in its assembly code output.
+ Edit /lib/default.ld and change the line:
+
+ .text 0x10200 BLOCK (0x200): { *(.init) *(.text) }
+
+ to look like the following:
+
+ .text 0x10200 BLOCK (0x200):
+ { *(.init) *(.text) *(.rodata) *(.tdesc) *(.fini)}
+
+ In addition, you may have to build extra stages (as many as five)
+ as per the instructions for m88k-svr3 systems if you bootstrap with
+ the Green Hills compiler.
+
`mips-mips-bsd'
MIPS machines running the MIPS operating system in BSD mode.
It's possible that some old versions of the system lack the
diff -c -r gcc-2.3.3/config.sub xd88-gcc-2.3.3/config.sub
*** gcc-2.3.3/config.sub Fri Nov 20 12:14:20 1992
--- xd88-gcc-2.3.3/config.sub Wed Feb 24 17:58:28 1993
***************
*** 84,89 ****
--- 84,93 ----
-isc*)
basic_machine=i386-unknown
;;
+ *-[Xx][Dd]88 | *-[Uu][Tt][Ee][Kk][Vv]) # Tektronix XD88 UTekV
+ os=-sysv3
+ basic_machine=m88k-tekXD88
+ ;;
esac
# Decode aliases for certain CPU-COMPANY combinations.
***************
*** 429,434 ****
--- 433,442 ----
vxworks68)
basic_machine=m68k-wrs
os=-vxworks
+ ;;
+ *[Xx][Dd]88 | *[Uu][Tt][Ee][Kk][Vv]) # Tektronix XD88 UTekV
+ basic_machine=m88k-tekXD88
+ os=-sysv3
;;
xps | xps100)
basic_machine=xps100-honeywell
diff -c -r gcc-2.3.3/configure xd88-gcc-2.3.3/configure
*** gcc-2.3.3/configure Mon Dec 21 02:58:23 1992
--- xd88-gcc-2.3.3/configure Wed Feb 24 16:50:02 1993
***************
*** 764,769 ****
--- 764,775 ----
xm_file=xm-m88kv3.h
xmake_file=x-m88kdolph
;;
+ m88k-tekXD88-sysv3)
+ tm_file=tekXD88.h
+ xm_file=xm-m88kv3.h
+ xmake_file=x-m88kdolph
+ echo Read the installation guide for info regarding changes to /lib/default.ld
+ ;;
m88k-*-sysv3*)
tm_file=m88kv3.h
xm_file=xm-m88kv3.h
diff -N -c -r gcc-2.3.3/config//tekXD88.h xd88-gcc-2.3.3/config//tekXD88.h
*** gcc-2.3.3/config//tekXD88.h
--- xd88-gcc-2.3.3/config//tekXD88.h Fri Mar 5 15:46:32 1993
***************
*** 0 ****
--- 1,14 ----
+ /* Tektronix XD88 UTekV 3.2e (derived from UniSoft System V/88)
+ * port by Kaveh R. Ghazi (ghazi@caip.rutgers.edu) 2/22/93/.
+ */
+
+ #include "m88kdolph.h"
+
+ /* Force gcc to explicitly pass the link editor directives which reside in
+ * /lib/default.ld to /bin/ld during link phases. In addition, information
+ * about extra sections must be added so that files will link properly.
+ * See the XD88 installation instructions for more complete information.
+ * --KRG.
+ */
+ #undef LINK_SPEC
+ #define LINK_SPEC "default.ld%s"
--
Kaveh R. Ghazi CAIP Center, Rutgers University.
ghazi@caip.rutgers.edu rutgers!caip.rutgers.edu!ghazi
Technical Details
Message-ID:
<Mar.15.12.45.29.1993.3754@caip.rutgers.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!dziuxsolim.rutgers.edu!caip.rutgers.edu!ghaziReferences:
<1o18kp$bi9@guardian.up.edu>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 11318c,2d1a20bdf205d676 X-Google-Attributes: gid11318c,public X-Google-ArrivalTime: 1993-03-15 09:52:46 PST Path: arc1-ca.pugleaf.net!sparky!uunet!dziuxsolim.rutgers.edu!caip.rutgers.edu!ghazi From: ghazi@caip.rutgers.edu (Kaveh R. Ghazi) Newsgroups: gnu.gcc.help Subject: Re: tips on m88k build (XD88) Message-ID: <Mar.15.12.45.29.1993.3754@caip.rutgers.edu> Date: 15 Mar 93 17:45:30 GMT References: <1o18kp$bi9@guardian.up.edu> Distribution: na Organization: Rutgers Univ., New Brunswick, N.J. Lines: 126