Subject: linker problem ??
To: None <current-users@netbsd.org>
From: Juergen Hannken-Illjes <hannken@eis.cs.tu-bs.de>
List: current-users
Date: 07/02/2001 15:06:30
I'm running -current on sparc and i386. While i386 has no problems, the
builds on sparc yield non-working compiler passes (cc1).
It looks like the .data section gets wrong data. Find attached the result
from an objdump. cc1-0 is the result of a `make build', cc1-1 is the result
of `rm .../cc1; make dependall'. cc1-1 is the working program.
The build is on a sparc-20, dual processor, sources and obj over nfs from
an i386 -current system.
Any ideas where to look further?
--
Juergen Hannken-Illjes - hannken@eis.cs.tu-bs.de - TU Braunschweig (Germany)
-cc1-0: file format elf32-sparc
+cc1-1: file format elf32-sparc
Disassembly of section .data:
@@ -289,364 +289,356 @@
1ebfd8: 00 1a 47 e8 00 1a 47 60 00 00 00 02 00 1f 8f d0 ..G...G`........
...
- 1ec000: 30 73 2f 75 73 72 2f 73 72 63 2f 6c 69 62 2f 6c 0s/usr/src/lib/l
- 1ec010: 69 62 63 2f 72 70 63 2f 73 76 63 5f 61 75 74 68 ibc/rpc/svc_auth
- 1ec020: 2e 63 0a 53 2f 75 73 72 2f 73 72 63 2f 6c 69 62 .c.S/usr/src/lib
- 1ec030: 2f 6c 69 62 63 2f 72 70 63 2f 73 76 63 5f 61 75 /libc/rpc/svc_au
- 1ec040: 74 68 2e 63 0a 31 73 2f 75 73 72 2f 73 72 63 2f th.c.1s/usr/src/
- 1ec050: 6c 69 62 2f lib/
+ 1ec000: 00 1a 48 00 00 1a 47 58 00 00 00 01 00 1f 90 64 ..H...GX.......d
+ 1ec010: 00 1f 8f 5c 00 1f 8f a0 00 1f 8f ac 00 1f 90 3c ...\...........<
+ ...
+ 1ec028: 00 1a 42 30 00 00 00 00 00 00 00 00 00 00 00 00 ..B0............
+ ...
001ec054 <time_char_table>:
- 1ec054: 6c 69 62 63 2f 69 6e 63 6c 75 64 65 2f 6e 61 6d libc/include/nam
- 1ec064: 65 73 70 61 63 65 2e 68 0a 32 73 2f 75 73 72 2f espace.h.2s/usr/
- 1ec074: 69 6e 63 6c 75 64 65 2f 73 79 73 2f 63 64 65 66 include/sys/cdef
- 1ec084: 73 2e 68 0a 33 73 2f 75 73 72 2f 69 6e 63 6c 75 s.h.3s/usr/inclu
- 1ec094: 64 65 2f 6d 61 63 68 69 6e 65 2f 63 64 65 66 73 de/machine/cdefs
- 1ec0a4: 2e 68 0a 34 73 2f 75 73 72 2f 69 6e 63 6c 75 64 .h.4s/usr/includ
- 1ec0b4: 65 2f 70 6f 77 65 72 70 63 2f 63 64 65 66 73 2e e/powerpc/cdefs.
- 1ec0c4: 68 0a 35 73 2f 75 73 72 2f 69 6e 63 6c 75 64 65 h.5s/usr/include
- 1ec0d4: 2f 73 79 73 2f 63 64 65 66 73 5f 65 6c 66 2e 68 /sys/cdefs_elf.h
- 1ec0e4: 0a 36 73 2f 75 73 72 2f 73 72 63 2f 6c 69 62 2f .6s/usr/src/lib/
- 1ec0f4: 6c 69 62 63 2f 69 6e 63 6c 75 64 65 2f 72 65 65 libc/include/ree
- 1ec104: 6e 74 72 61 6e 74 2e 68 0a 37 73 2f 75 73 72 2f ntrant.h.7s/usr/
- 1ec114: 69 6e 63 6c 75 64 65 2f 73 79 73 2f 74 79 70 65 include/sys/type
- 1ec124: 73 2e 68 0a 38 73 2f 75 73 72 2f 69 6e 63 6c 75 s.h.8s/usr/inclu
- 1ec134: 64 65 2f 6d 61 63 68 69 6e 65 2f 74 79 70 65 73 de/machine/types
- 1ec144: 2e 68 0a 39 73 2f 75 73 72 2f 69 6e 63 6c 75 64 .h.9s/usr/includ
- 1ec154: 65 2f 70 6f 77 65 72 70 63 2f 74 79 70 65 73 2e e/powerpc/types.
- 1ec164: 68 0a 31 30 73 2f 75 73 72 2f 69 6e 63 6c 75 64 h.10s/usr/includ
- 1ec174: 65 2f 70 6f 77 65 72 70 63 2f 69 6e 74 5f 74 79 e/powerpc/int_ty
- 1ec184: 70 65 73 2e 68 0a 31 31 73 2f 75 73 72 2f 69 6e pes.h.11s/usr/in
- 1ec194: 63 6c 75 64 65 2f 6d 61 63 68 69 6e 65 2f 61 6e clude/machine/an
- 1ec1a4: 73 69 2e 68 0a 31 32 73 2f 75 73 72 2f 69 6e 63 si.h.12s/usr/inc
- 1ec1b4: 6c 75 64 65 2f 70 6f 77 65 72 70 63 2f 61 6e 73 lude/powerpc/ans
- 1ec1c4: 69 2e 68 0a 31 33 73 2f 75 73 72 2f 69 6e 63 6c i.h.13s/usr/incl
- 1ec1d4: 75 64 65 2f 6d 61 63 68 69 6e 65 2f 69 6e 74 5f ude/machine/int_
- 1ec1e4: 74 79 70 65 73 2e 68 0a 31 34 73 2f 75 73 72 2f types.h.14s/usr/
- 1ec1f4: 69 6e 63 6c 75 64 65 2f 73 79 73 2f 61 6e 73 69 include/sys/ansi
- 1ec204: 2e 68 0a 31 35 73 2f 75 73 72 2f 69 6e 63 6c 75 .h.15s/usr/inclu
- 1ec214: 64 65 2f 6d 61 63 68 69 6e 65 2f 65 6e 64 69 61 de/machine/endia
- 1ec224: 6e 2e 68 0a 31 36 73 2f 75 73 72 2f 69 6e 63 6c n.h.16s/usr/incl
- 1ec234: 75 64 65 2f 73 79 73 2f 65 6e 64 69 61 6e 2e 68 ude/sys/endian.h
- 1ec244: 0a 31 37 73 2f 75 73 72 2f 69 6e 63 6c 75 64 65 .17s/usr/include
- 1ec254: 2f 6d 61 63 68 69 6e 65 2f 65 6e 64 69 61 6e 5f /machine/endian_
- 1ec264: 6d 61 63 68 64 65 70 2e 68 0a 31 38 73 2f 75 73 machdep.h.18s/us
- 1ec274: 72 2f 69 6e 63 6c 75 64 65 2f 70 6f 77 65 72 70 r/include/powerp
+ 1ec054: 00 1a 48 d0 00 00 00 00 00 00 00 00 00 00 00 00 ..H.............
+ ...
+ 1ec078: 00 1a 48 c8 00 1a 48 c0 00 00 00 00 00 00 00 00 ..H...H.........
+ ...
+ 1ec0a0: 00 1a 48 b8 00 1a 48 b0 00 00 00 00 00 00 00 00 ..H...H.........
+ ...
+ 1ec0c8: 00 1a 48 a8 00 1a 48 a0 00 00 00 00 00 00 00 00 ..H...H.........
+ ...
+ 1ec0f0: 00 1a 48 98 00 1a 48 88 00 00 00 00 00 00 00 00 ..H...H.........
+ ...
+ 1ec118: 00 1a 42 30 00 1a 48 80 00 00 00 00 00 00 00 00 ..B0..H.........
+ ...
+ 1ec140: 00 1a 48 78 00 1a 48 68 00 00 00 00 00 00 00 00 ..Hx..Hh........
+ ...
+ 1ec168: 00 1a 48 60 00 1a 48 58 00 00 00 00 00 00 00 00 ..H`..HX........
+ ...
+ 1ec190: 00 1a 48 50 00 1a 48 48 00 00 00 00 00 00 00 00 ..HP..HH........
+ ...
+ 1ec1b8: 00 1a 48 40 00 1a 48 38 00 00 00 00 00 00 00 00 ..H@..H8........
+ ...
+ 1ec1e0: 00 1a 48 30 00 1a 47 60 00 00 00 00 00 00 00 00 ..H0..G`........
+ ...
+ 1ec208: 00 1a 48 28 00 1a 48 20 00 00 00 00 00 00 00 00 ..H(..H ........
+ ...
+ 1ec230: 00 1a 48 18 00 1a 48 10 00 00 00 00 00 00 00 00 ..H...H.........
+ ...
+ 1ec258: 00 1a 48 08 00 00 00 00 00 00 00 00 00 00 00 00 ..H.............
+ ...
and so on ...