🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.utils.bug
Article #885

Fix for binutils 1.9 ld on Sequent Symmetry

#885
From: Jason Merrill
Date: Sat, 10 Oct 1992 09:52
60 lines
2826 bytes
The first patch is just a convenient mod so ranlib can find ar even if it
isn't named ar...

I have also copied the cp-dem.c from the gcc 2.2.2 distribution over the
cplus-dem.c file in binutils-1.9, since the mangling format has changed
somewhat since 1.9 was released.

The second patch fixes ld.c to set the a_version field of the exec header
in the Sequent a.out format to 1, as does the system ld.

Any plans to port BFD to the Symmetry?

Jason Merrill
jason@jarthur.claremont.edu

-----Cut here-----
diff -u tmp/binutils-1.9/Makefile binutils-1.9/Makefile
--- tmp/binutils-1.9/Makefile	Wed Apr 17 12:37:51 1991
+++ binutils-1.9/Makefile	Sat Oct 10 01:42:24 1992
@@ -24,9 +24,10 @@
 # But you might need to use your old C compiler to compile the other
 # programs (ld at least), if you can't run gcc without them
 # (particularly on COFF systems).
-#CC = cc
+CC = $(GNUCC)
 
-bindir=/usr/local/gnubin
+bindir=/usr/local/bin
+binprefix=gnu
 
 # For BSD:
 # For SunOS 4.x, take out -DVPRINTF_MISSING.
@@ -120,7 +121,7 @@
 $(archpfx)ranlib: $(archpfx)ranlib.o $(GNU_GETOPT_LONG) $(LIBS)
 	$(CC) $(CFLAGS) -o $(archpfx)ranlib $(archpfx)ranlib.o $(GNU_GETOPT_LONG) $(LIBS)
 $(archpfx)ranlib.o: ranlib.c
-	$(CC) -c $(CFLAGS) -DAR_PROG=\"$(bindir)/ar\" ranlib.c $(OUTPUT_OPTION)
+	$(CC) -c $(CFLAGS) -DAR_PROG=\"$(bindir)/$(binprefix)ar\" ranlib.c $(OUTPUT_OPTION)
 
 $(archpfx)objdump: $(archpfx)objdump.o $(archpfx)error.o $(GNU_GETOPT_LONG) a.out.gnu.h $(LIBS)
 	$(CC) $(CFLAGS) -o $(archpfx)objdump $(archpfx)objdump.o $(archpfx)error.o \
diff -u tmp/binutils-1.9/ld.c binutils-1.9/ld.c
--- tmp/binutils-1.9/ld.c	Fri Mar 29 12:29:40 1991
+++ binutils-1.9/ld.c	Sat Oct 10 02:23:04 1992
@@ -226,9 +226,13 @@
 #ifdef hpux
 #define INITIALIZE_HEADER N_SET_MACHTYPE (outheader, HP9000S200_ID)
 #endif
-#if defined(i386) && !defined(sequent)
+#if defined(i386)
+#if !defined(sequent)		/* Sequent has no a_info field */
 #define INITIALIZE_HEADER N_SET_MACHTYPE (outheader, M_386)
-#endif /* Sequent symmetry.  */
+#else				/* But it requires a version # */
+#define INITIALIZE_HEADER outheader.a_version = 1
+#endif /* !sequent */
+#endif /* i386 */
 #if defined(hp300)
 #define INITIALIZE_HEADER outheader.a_mid = MID_HP300
 /* MORE/bsd tags the filename symbol with N_FN|N_EXT not N_TEXT */
Technical Details
Message-ID: <1992Oct10.095232.473@muddcs.claremont.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!jarthur.claremont.edu!jason

Show Full Headers
Complete Article Headers
Newsgroups: gnu.utils.bug
Path: arc1-ca.pugleaf.net!sparky!uunet!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!jarthur.claremont.edu!jason
From: jason@jarthur.claremont.edu (Jason Merrill)
Subject: Fix for binutils 1.9 ld on Sequent Symmetry
Message-ID: <1992Oct10.095232.473@muddcs.claremont.edu>
Sender: gnulists@ai.mit.edu
Organization: Harvey Mudd College, Claremont, CA 91711
Distribution: gnu
Date: Sat, 10 Oct 1992 09:52:32 GMT
Approved: bug-gnu-utils@prep.ai.mit.edu
Lines: 61