🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

1 total messages Started by Patrick D. Wildi Fri, 06 Nov 1992 16:48
i960 toolchain linker problem
#1047
Author: Patrick D. Wildi
Date: Fri, 06 Nov 1992 16:48
58 lines
2953 bytes
Hi

I am trying to set up a GNU toolchain for cross-compiling i960 code
on a sun4c (sunos 4.1.1).

I use the following configurations for these tools:

GCC (2.2.2):    --host=sun4 --target=i960 --nfp
GAS (1.92.3):   --host=sun4 --target=i960-nindy
Binutils (2.0): --host=sun4  (using LDEMULATION=gld960, GNUTARGET=b.out.big to run gld)


Is this the correct configuration? Would it be better to use a coff format?
Does the coff configuration work for all tools?

It seems to me that GCC and GAS work ok. But the linker always fails with a
this segmentation error:
	
>	lewis [ld] setenv LDEMULATION gld960
>	lewis [ld] gdb ld.new
>	GDB is free software and you are welcome to distribute copies of it
>	 under certain conditions; type "show copying" to see the conditions.
>	There is absolutely no warranty for GDB; type "show warranty" for details.
>	GDB 4.5, Copyright 1992 Free Software Foundation, Inc...
>	(gdb) run -b b.out.big -o tt.o bite.o
>
>	Program received signal 11, Segmentation fault
>	0x2ec94 in b_out_get_relocated_section_contents (in_abfd=0xa9060,
>    	seclet=0xa9428, data=0xaf028 "V1.0x7") at bout.c:1155
>	1155            switch (reloc->howto->type)
>	(gdb) where
>	#0  0x2ec94 in b_out_get_relocated_section_contents (in_abfd=0xa9060,
>	    seclet=0xa9428, data=0xaf028 "V1.0x7") at bout.c:1155
>	#1  0x1b8c4 in rel (abfd=0xa9060, seclet=0xa9428, output_section=0xa9288,
>	    data=0xaf028 "V1.0x7") at seclet.c:86
>	#2  0x1b944 in seclet_dump_seclet (abfd=0xa9060, seclet=0xa9428,
>	    section=0xa9288, data=0xaf028 "V1.0x7") at seclet.c:110
>	#3  0x1babc in seclet_dump (abfd=0xa9060, data=0xaf028 "V1.0x7")
>	    at seclet.c:146
>	#4  0x12c0c in write_relaxnorel (output_bfd=0xa9060, data=0xaf028 "V1.0x7")
>	    at relax.c:162
>	#5  0xe244 in ldwrite () at ldwrite.c:414
>	#6  0xc2f4 in main (argc=6, argv=0xf7fff83c) at ldmain.c:254
>	(gdb) p *reloc
>	$1 = {sym_ptr_ptr = 0xabdec, address = 32, addend = 0, howto = 0x440}
>	(gdb) p *reloc->howto
>	$2 = Cannot access memory at address 0x440.

Can anybody give me a hint what is wrong in my setup?

Thanks Patrick.

-------------------------------------------------------------------
Patrick D. Wildi		Phone:    (310)443-5727
Ascom Timeplex 			FAX:      (310)443-5582
10920 Wilshire Blvd.		Internet: patrick@wwtc.timeplex.com
Los Angeles, CA 90024		UUCP:     uunet!uncng!patrick
-------------------------------------------------------------------
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