Subject: /rescue/ksh does not work
To: None <>
From: Kouichirou Hiratsuka <>
List: current-users
Date: 02/25/2004 02:21:55

On a recent -current, /rescue/ksh can't execute any commands. /bin/ksh
works fine.

# /rescue/ksh
# pwd
[1]   Segmentation fault (core dumped) /rescue/ksh

Revision 1.54 of src/usr.bin/crunch/crunchgen/crunchgen.c seems to work
fine for the rescue. `-dc' option for ld(1) has been removed in revision
1.55. With revision 1.55, following warnings appeared when built the

 Warning: size of symbol `history' changed from 4 in ksh.cro to 688 in /usr/lib/
 Warning: type of symbol `history' changed from 1 to 2 in /usr/lib/libedit.a(his

If I add `-dc' to src/rescue/ and rebuild the rescue, /resuce/ksh
works fine.

# cd /usr/src/rescue
# make
# sed 's/${LD} -r/${LD} -r -dc/g' >; mv
# make && make install
# /rescue/ksh
# pwd

Is `-dc' option necessary for ld(1) when building a crunched binary?

best regards.

 Kouichirou Hiratsuka