kono@xxxxxxxxxxxxxxxxx (Shinji KONO) writes:
> でも、やっぱり、この非常識なプログラムメッセージを消す方が
> 正しいと思う。消し方を知っている人いますか? たぶん、バイナリ
> エディタで、この文字列を0で消すのが簡単だと思うんだけど。
> 場所がいまいちわからん。
私の環境だと出ないんで試せないんだけど、以下でどうでしょう。
(1) 以下のようなファイルをコンパイルして、シェアドライブラリにしておく。
int errno;
(2) wrapper シェルスクリプトを作って、その中で上のファイルをプリロード
する。
#!/bin/sh
PROGRAM=オリジナルプログラムのパス
LD_PRELOAD=シェアドライブラリのパス exec ${PROGRAM} "$@"
(でも、コンパイルし直さない限り完全には動かないでしょうけどね。意図し
た「本物の」errno にアクセスできてないんだから。)
前田敦司
Follow-Ups:
- [fol] Re: Incorrectly built binary which accesses errno or h_errno directly. Needs to be fixed. を消すには?Hideo "Sir MaNMOS" Morishita
- [fol] Incorrectly built binary which accesses errno or h_errno directly. Needs to be fixed. を消すには?Shinji KONO
- Prev by Date: [fol] Re: Incorrectly built binary which a ccesses errno or h_errno directly. Needs t o be fixed. を消すには?
- Next by Date: [fol] Re: Incorrectly built binary which accesses errno or h_errno directly. Needs to be fixed. を消すには?
- Previous by thread: [fol] Re: Incorrectly built binary which a ccesses errno or h_errno directly. Needs t o be fixed. を消すには?
- Next by thread: [fol] Re: Incorrectly built binary which accesses errno or h_errno directly. Needs to be fixed. を消すには?
- Indexes:[Main][Thread]