Linux PARISC architecture development
 help / color / mirror / Atom feed
* [parisc-linux] Linker problems
@ 1999-04-30 23:07 Alex deVries
  1999-04-30 23:19 ` Mike Shaver
  1999-05-01  2:24 ` Philipp Rumpf
  0 siblings, 2 replies; 10+ messages in thread
From: Alex deVries @ 1999-04-30 23:07 UTC (permalink / raw)
  To: parisc-linux


When I build the current kernel in CVS, it gets remarkably far, then dies
on:

parisc-linux-ld -m hppaelf -e stext arch/parisc/kernel/head.o
arch/parisc/kernel/init_task.o init/main.o init/version.o \
        --start-group \
        arch/parisc/kernel/kernel.o arch/parisc/mm/mm.o kernel/kernel.o
mm/mm.o fs/fs.o ipc/ipc.o \
        fs/filesystems.a \
        net/network.a \
        drivers/block/block.a drivers/char/char.a drivers/misc/misc.a
drivers/net/net.a drivers/video/video.a \
        /usr/src/parisc/work/linux/arch/parisc/lib/lib.a
/usr/src/parisc/work/linux/lib/lib.a
/usr/src/parisc/work/linux/arch/parisc/lib/lib.a \
        --end-group \
        -o vmlinux
make: *** [vmlinux] Aborted (core dumped)
make: *** Deleting file `vmlinux'

That's remarkably gross, since it indicates that there's a problem with
the linker.  I'm not quite sure what it is, but the problem seems to come
up when it's processing lib/libc.a.

I think that's a good thing for someone to look into.

- Alex

-- 
Alex deVries <puffin@redhat.com>     
Red Hat Contrib Net maintainer          
Ottawa, Canada  
PA RISC Linux Porting Team

^ permalink raw reply	[flat|nested] 10+ messages in thread
* [parisc-linux] Linker problems
@ 1999-12-05 21:22 Philipp Rumpf
       [not found] ` <199912052206.RAA24956@hiauly1.hia.nrc.ca>
  1999-12-06 19:38 ` Philipp Rumpf
  0 siblings, 2 replies; 10+ messages in thread
From: Philipp Rumpf @ 1999-12-05 21:22 UTC (permalink / raw)
  To: parisc-linux

Okay, it looks like HP/UX ld is behaving funny for some things in the 2.3
kernel.  Most notable fs/buffer.c, buffer_init:

Assembly source piped to gas:
	addil LR'hash_table-$global$,%r27
	copy %r1,%r12
	addil LR'bh_hash_shift-$global$,%r27
	copy %r1,%r10
	addil LR'zonelists-$global$,%r27
	comib,>>= 1,%r3,L$4451

Generated object file (objdump -d --reloc fs/buffer.o):
      84:   2b 60 00 00     addil 0,dp,%r1
                        84: R_DP_RELATIVE       hash_table
      88:   08 01 02 4c     copy r1,r12
      8c:   2b 60 00 00     addil 0,dp,%r1
                        8c: R_DP_RELATIVE       bh_hash_shift
      90:   08 01 02 4a     copy r1,r10
      94:   2b 60 00 00     addil 0,dp,%r1
                        94: R_DP_RELATIVE       zonelists
      98:   8c 62 80 30     cmpib,>>= 1,r3,b8 <buffer_init+0xb8>

vmlinux (objdump -d --reloc vmlinux):
c0063884:       2b 70 30 00     addil 21800,dp,%r1
c0063888:       08 01 02 4c     copy r1,r12
c006388c:       28 0f 70 00     addil 5f800,r0,%r1
c0063890:       08 01 02 4a     copy r1,r10
c0063894:       2b 77 50 00     addil 6e800,dp,%r1
c0063898:       8c 62 80 30     cmpib,>>= 1,r3,c00638b8 <buffer_init+0xb8>


Note that 
	addil LR'bh_hash_shift-$global$,%r27
	copy %r1,%r10

ultimately becomes addil 0x5f800, _r0_, %r1, which doesn't make sense (and
causes a DPF lateron).

I haven't found anything obvious that could explain it in the linker source,
but I haven't looked too closely at it.

Sorting this out is pretty much required to get 2.3 up (otoh, we're getting to
buffer_init which is relatively far (into the parts that have changed heavily)).

Any ideas ?


	Philipp Rumpf

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~1999-12-06 20:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1999-04-30 23:07 [parisc-linux] Linker problems Alex deVries
1999-04-30 23:19 ` Mike Shaver
1999-05-01  2:24 ` Philipp Rumpf
1999-05-01  2:57   ` Philipp Rumpf
1999-05-01  3:08     ` Philipp Rumpf
1999-05-01  4:24       ` [parisc-linux] The kernel builds!!! Alex deVries
1999-05-01 11:18         ` Hugo van der Kooij
  -- strict thread matches above, loose matches on Subject: below --
1999-12-05 21:22 [parisc-linux] Linker problems Philipp Rumpf
     [not found] ` <199912052206.RAA24956@hiauly1.hia.nrc.ca>
     [not found]   ` <19991206035320.A21512@mathe.stud.uni-erlangen.de>
1999-12-06 19:36     ` Philipp Rumpf
1999-12-06 19:38 ` Philipp Rumpf

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox