From owner-freebsd-hackers Sat Nov 21 11:07:35 1998 Return-Path: Received: (from majordom@localhost) by hub.freebsd.org (8.8.8/8.8.8) id LAA10776 for freebsd-hackers-outgoing; Sat, 21 Nov 1998 11:07:35 -0800 (PST) (envelope-from owner-freebsd-hackers@FreeBSD.ORG) Received: from wall.polstra.com (rtrwan160.accessone.com [206.213.115.74]) by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id LAA10768 for ; Sat, 21 Nov 1998 11:07:32 -0800 (PST) (envelope-from jdp@polstra.com) Received: from vashon.polstra.com (vashon.polstra.com [206.213.73.13]) by wall.polstra.com (8.9.1/8.9.1) with ESMTP id LAA10310; Sat, 21 Nov 1998 11:07:01 -0800 (PST) (envelope-from jdp@polstra.com) From: John Polstra Received: (from jdp@localhost) by vashon.polstra.com (8.9.1/8.9.1) id LAA26386; Sat, 21 Nov 1998 11:07:00 -0800 (PST) (envelope-from jdp@polstra.com) Date: Sat, 21 Nov 1998 11:07:00 -0800 (PST) Message-Id: <199811211907.LAA26386@vashon.polstra.com> To: n@nectar.com Subject: Re: munging or removing DT_SONAME Newsgroups: polstra.freebsd.hackers In-Reply-To: <199811211743.LAA19220@spawn.nectar.com> Organization: Polstra & Co., Seattle, WA Cc: hackers@FreeBSD.ORG Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In article <199811211743.LAA19220@spawn.nectar.com>, Jacques Vidrine wrote: > Anyone know of a way to change the value of DT_SONAME in a shared > library binary? Or of removing it completely? > > For ELF, ports/xforms installs libxforms.so.0 from a binary > distribution. Unfortunately, libxforms.so.0 has > DT_SONAME=libforms.so.0.88, requiring a (IMHO bogus) symlink > libforms.so.0.88 -> libxforms.so.0 in order for ld-elf.so to > find it. The best thing to do would be to find out who built the library, and ask him to make a new one with the correct soname. Barring that, I suppose you could fix the file with emacs "hexl" mode or with some other binary editor. The strings are null-terminated. Just find the ".88" and glom a 0 byte on top of the ".". But really, it would be much better to ask for the library to be rebuilt. Otherwise the problem just comes back with the next version. John -- John Polstra jdp@polstra.com John D. Polstra & Co., Inc. Seattle, Washington USA "Nobody ever went broke underestimating the taste of the American public." -- H. L. Mencken To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message