* [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* Re: [parisc-linux] Linker problems
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
1 sibling, 0 replies; 10+ messages in thread
From: Mike Shaver @ 1999-04-30 23:19 UTC (permalink / raw)
To: Alex deVries; +Cc: parisc-linux
Alex deVries wrote:
> 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.
IIRC, Nat says it's a matter of popping into gdb, spotting the crash
location, fixing the obvious double-free and recompiling.
Mike
--
372738.81 362322.32
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [parisc-linux] Linker problems
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
1 sibling, 1 reply; 10+ messages in thread
From: Philipp Rumpf @ 1999-05-01 2:24 UTC (permalink / raw)
To: Alex deVries, parisc-linux
> 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
I think I have fixed it in CVS. Please all retry 8)
> I think that's a good thing for someone to look into.
Still, someone could look into whether what I have done was right, so the
comments in the code seem to imply very strongly to me it is.
binutils/ld/emultempl/hppaelf.em is now version 1.2, was version 1.1.
Philipp
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [parisc-linux] Linker problems
1999-05-01 2:24 ` Philipp Rumpf
@ 1999-05-01 2:57 ` Philipp Rumpf
1999-05-01 3:08 ` Philipp Rumpf
0 siblings, 1 reply; 10+ messages in thread
From: Philipp Rumpf @ 1999-05-01 2:57 UTC (permalink / raw)
To: Alex deVries, parisc-linux
> binutils/ld/emultempl/hppaelf.em is now version 1.2, was version 1.1.
I typoed there, use 1.4. We now die with an undefined reference to $global$.
should not be exactly hard to fix I guess but it is 5am here :)
^ permalink raw reply [flat|nested] 10+ messages in thread
* Re: [parisc-linux] Linker problems
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
0 siblings, 1 reply; 10+ messages in thread
From: Philipp Rumpf @ 1999-05-01 3:08 UTC (permalink / raw)
To: Alex deVries, parisc-linux
> I typoed there, use 1.4. We now die with an undefined reference to $global$.
> should not be exactly hard to fix I guess but it is 5am here :)
not hard at all. here we are:
prumpf@insula:~/cvs-s/parisc/linux > ls -l vmlinux
-rwxr-xr-x 1 prumpf users 353695 May 1 03:01 vmlinux
I'll commit the $global$ change now. someone tell me how far the boot gets,
ok ? (not that I expect much).
^ permalink raw reply [flat|nested] 10+ messages in thread
* [parisc-linux] The kernel builds!!!
1999-05-01 3:08 ` Philipp Rumpf
@ 1999-05-01 4:24 ` Alex deVries
1999-05-01 11:18 ` Hugo van der Kooij
0 siblings, 1 reply; 10+ messages in thread
From: Alex deVries @ 1999-05-01 4:24 UTC (permalink / raw)
To: parisc-linux
On Sat, 1 May 1999, Philipp Rumpf wrote:
> prumpf@insula:~/cvs-s/parisc/linux > ls -l vmlinux
> -rwxr-xr-x 1 prumpf users 353695 May 1 03:01 vmlinux
>
I'm pretty sure that this is the first every monolithic kernel to be build
for PA RISC.
This is a pretty significant feat, and I'd encourage you wherever you are
to stand up and clap your hands/wings to Philipp and everyone else who's
helped out.
This is going very very well... I hope people can appreciate the
significance of this step.
- 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
* Re: [parisc-linux] The kernel builds!!!
1999-05-01 4:24 ` [parisc-linux] The kernel builds!!! Alex deVries
@ 1999-05-01 11:18 ` Hugo van der Kooij
0 siblings, 0 replies; 10+ messages in thread
From: Hugo van der Kooij @ 1999-05-01 11:18 UTC (permalink / raw)
To: Alex deVries; +Cc: parisc-linux
On Sat, 1 May 1999, Alex deVries wrote:
>
> On Sat, 1 May 1999, Philipp Rumpf wrote:
> > prumpf@insula:~/cvs-s/parisc/linux > ls -l vmlinux
> > -rwxr-xr-x 1 prumpf users 353695 May 1 03:01 vmlinux
> >
>
> I'm pretty sure that this is the first every monolithic kernel to be build
> for PA RISC.
>
> This is a pretty significant feat, and I'd encourage you wherever you are
> to stand up and clap your hands/wings to Philipp and everyone else who's
> helped out.
The mere fact is more then a leap for mankind.
GREAT JOB!
Hugo.
+------------------------+------------------------------+
| Hugo van der Kooij | Hugo.van.der.Kooij@caiw.nl |
| Oranje Nassaustraat 16 | http://www.caiw.nl/~hvdkooij |
| 3155 VJ Maasland | (De man met de rode hoed) |
+------------------------+------------------------------+
"Computers let you make more mistakes faster than any other invention in
human history, with the possible exception of handguns and tequila."
(Mitch Radcliffe)
^ 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