Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 13 Jan 2008 20:12:41 -0800
From:      "Peter Wemm" <peter@wemm.org>
To:        "David O'Brien" <obrien@freebsd.org>, freebsd-current@freebsd.org
Subject:   Re: [Call for testers] "BSD ar"
Message-ID:  <e7db6d980801132012i37a5fd95n92d9d2dc300cf75@mail.gmail.com>
In-Reply-To: <20080113191037.GA1899@plan0.kaiwan.csbnet.se>
References:  <20080111142336.GA1379@plan0.kaiwan.csbnet.se> <20080113103501.GB46123@dragon.NUXI.org> <20080113171514.GA1210@plan0.kaiwan.csbnet.se> <20080113183915.GA56979@dragon.NUXI.org> <20080113191037.GA1899@plan0.kaiwan.csbnet.se>

next in thread | previous in thread | raw e-mail | index | archive | help
On Jan 13, 2008 11:10 AM, Kai Wang <kaiwang27@gmail.com> wrote:
> On Sun, Jan 13, 2008 at 10:39:15AM -0800, David O'Brien wrote:
> > Hi Kai,
> > I'm sorry I wasn't clear enough - can your BSD 'ar', built on amd64
> > handle both 32-bit (i.e., "i386") and 64-bit (i.e., "amd64) ELF archives?
> >
> > >From the above it almost seems you're saying it can handle that plus more
> > (other non-x86 arches).  Is that correct?
>
> Yes. BSD 'ar' can handle all the ELF variants(64/32, LE/BE),
> regardless of the arch it is built on . This is inherited from libelf.

Speaking of libelf..  Do you think I can tempt anybody into writing a
mcs(1) program?

http://cc.in2p3.fr/doc/phpman.php/man/mcs/1

DESCRIPTION
     The mcs command is used to manipulate a section, by  default
     the  .comment  section, in an ELF object file. It is used to
     add to, delete, print, and compress the contents of  a  sec-
     tion in an ELF object file ...

The main usefulness is adding custom comments to the #ident section,
printing the contents (ala ident(1)), removing duplicate comments, or
stripping the comments totally.

I've always missed this program...  it never made it into binutils.
-- 
Peter Wemm - peter@wemm.org; peter@FreeBSD.org; peter@yahoo-inc.com
"All of this is for nothing if we don't go to the stars" - JMS/B5



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?e7db6d980801132012i37a5fd95n92d9d2dc300cf75>