[parisc-linux] ldd segfaulting?
Alan Modra
alan@linuxcare.com.au
Sun, 5 Nov 2000 16:02:43 +1100 (EST)
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.