Thread View: gnu.utils.bug
1 messages
1 total messages
Started by Jason Merrill
Sat, 10 Oct 1992 09:52
Fix for binutils 1.9 ld on Sequent Symmetry
Author: Jason Merrill
Date: Sat, 10 Oct 1992 09:52
Date: Sat, 10 Oct 1992 09:52
60 lines
2826 bytes
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 */
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads