*BSD News Article 82318


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!insync!www.nntp.primenet.com!nntp.primenet.com!dispatch.news.demon.net!demon!awfulhak.demon.co.uk!awfulhak.demon.co.uk!awfulhak.demon.co.uk!not-for-mail
From: brian@anorak.coverform.lan (Brian Somers)
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Portability Poblem
Date: 5 Nov 1996 00:32:11 -0000
Organization: Coverform Ltd.
Lines: 20
Sender: brian@awfulhak.demon.co.uk
Message-ID: <55m1ub$3bi@anorak.coverform.lan>
References: <3278EF50.6D12@nirvanatech.com> <55kad4$k1t@newsbr.eunet.fr>
Reply-To: brian%anorak.coverform.lan@awfulhak.demon.co.uk
NNTP-Posting-Host: anorak.coverform.lan
X-NNTP-Posting-Host: awfulhak.demon.co.uk
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
X-Newsreader: knews 0.9.8

In article <55kad4$k1t@newsbr.eunet.fr>,
	Frederic.Marand@osinet.fr (Frederic MARAND) writes:
: By the way, as Jordan Hubbard wrote, strings can look in the data
: areas of the executable images, and AIX executable format (XCOFF) is
: not a standard format like COFF or ELF.

This pissed me off a bit when I first found a "strings" that does this.
The version I saw came out with something like "this file is not an exec".
I was snooping for deleted directory entries in a directory file at the
time :(

Of course the FreeBSD version works both ways :)  If it's executable,
it looks in the data segment by default (unless you say -a), otherwise
it just looks through the whole file.

-- 
Brian <brian%anorak.coverform.lan@awfulhak.demon.co.uk>
      <http://www.awfulhak.demon.co.uk/>
Don't _EVER_ lose your sense of humour....
.