* [parisc-linux] ldd segfaulting?
@ 2000-11-05 1:02 Randolph Chung
2000-11-05 5:02 ` Alan Modra
0 siblings, 1 reply; 2+ messages in thread
From: Randolph Chung @ 2000-11-05 1:02 UTC (permalink / raw)
To: parisc-linux
I think this may be related to what bdale has been seeing...
frodo:~# cat test.c
int main(int a, char **b) { return 0; }
frodo:~# gcc -o test test.c
frodo:~# ./test
frodo:~# ldd ./test
do_page_fault() pid=144 command='ld.so.1'
YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI
PSW: 00000000000001001000000100001011
r0-3 00000000 2aac367c 2aaacd67 2aaaa2f0
r4-7 2aac367c 2aaab4e8 2aac3622 2aac02b8
r8-11 20020048 2aaaccb8 2aaaa2f0 00000000
r12-15 00000081 00000080 200201e8 2001fe10
r16-19 00000000 00000000 00000000 2aac367c
r20-23 00000000 2aaaa000 2aaaa000 00000041
r24-27 2aaaa000 70000021 20020048 00076b50
r28-31 00000021 20020048 200202c0 2aaacd1b
sr0-4 00000000 00002003 00000000 00002003
sr4-8 00002003 00002003 00002003 00002003
IASQ: 00002003 00002003 IAOQ: 2aaadc63 2aaadc67
IIR: 0ce61280 ISR: 00002003 IOR: 2aac02b8
ORIG_R28: 00086350
do_page_fault() pid=145 command='ld.so.1'
YZrvWESTHLNXBCVMcbcbcbcbOGFRQPDI
PSW: 00000000000001001000000100001011
r0-3 00000000 2aac367c 2aaacd67 2aaaa2f0
r4-7 2aac367c 2aaab4e8 2aac3622 2aac02b8
r8-11 20020048 2aaaccb8 2aaaa2f0 00000000
r12-15 00000081 00000080 200201e8 2001fe10
r16-19 00000000 00000000 00000000 2aac367c
r20-23 00000000 2aaaa000 2aaaa000 00000041
r24-27 2aaaa000 70000021 20020048 00076b50
r28-31 00000021 20020048 200202c0 2aaacd1b
sr0-4 00000000 00002003 00000000 00002003
sr4-8 00002003 00002003 00002003 00002003
IASQ: 00002003 00002003 IAOQ: 2aaadc63 2aaadc67
IIR: 0ce61280 ISR: 00002003 IOR: 2aac02b8
ORIG_R28: 00090190
ldd: /lib/ld.so.1 exited with unknown exit code (139)
frodo:~# gcc --version
2.96
frodo:~# ldd --version
ldd (GNU libc) 2.1.95
Copyright (C) 1999 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
Written by Roland McGrath and Ulrich Drepper.
frodo:~#
Any ideas what's going on? I've tried this both with a Oct26 kernel and
one that is from cvs today. Same results.
randolph
--
@..@ http://www.TauSq.org/
(----)
( >__< )
^^ ~~ ^^
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [parisc-linux] ldd segfaulting?
2000-11-05 1:02 [parisc-linux] ldd segfaulting? Randolph Chung
@ 2000-11-05 5:02 ` Alan Modra
0 siblings, 0 replies; 2+ messages in thread
From: Alan Modra @ 2000-11-05 5:02 UTC (permalink / raw)
To: Randolph Chung; +Cc: parisc-linux, parisc-linux
On Sat, 4 Nov 2000, Randolph Chung wrote:
> frodo:~# ldd ./test
>
> do_page_fault() pid=144 command='ld.so.1'
Most likely a case of new kernel, ld.so compiled with old gcc. Old is
earlier than 25th Oct. Before that gcc put plabels, which need
relocating, in .rodata, which is mapped read-only. The new kernel
enforces the read-only mapping, so you run into problems when ld.so tries
to relocate itself.
Fortunately, you only need recompile glibc with a new gcc. Older binaries
with plabels in .rodata are handled OK as ld.so re-maps the segments
read/write, something it doesn't manage to do for itself.
Alan Modra
--
Linuxcare. Support for the Revolution.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2000-11-05 5:01 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2000-11-05 1:02 [parisc-linux] ldd segfaulting? Randolph Chung
2000-11-05 5:02 ` Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox