[haiku-development] Re: BeOS resources and strip

  • From: Ingo Weinhold <ingo_weinhold@xxxxxx>
  • To: haiku-development@xxxxxxxxxxxxx
  • Date: Mon, 20 Apr 2009 23:39:01 +0200

On 2009-04-20 at 17:48:52 [+0200], Grzegorz Dąbrowski 
<grzegorz.dabrowski@xxxxxxxxx> wrote:
> On Mon, 20 Apr 2009 10:29:14 -0500
> Rene Gollent <anevilyak@xxxxxxxxx> wrote:
> 
> > On Mon, Apr 20, 2009 at 10:26 AM, Ingo Weinhold
> > <ingo_weinhold@xxxxxx> wrote:
> > >
> > > You mean besides not stripping it? No, since the resources are
> > > really just appended to the actual ELF file. They don't appear as
> > > section or segment in the ELF structure. We might want to change
> > > that someday, though.
> > 
> > Couldn't you strip first and then run xres? or is there something
> > that'd prevent that?
> 
> Strip and xres works fine of course. But if you have not stripped
> binary with xres (like the NetSurf from optional packages), there is a
> problem. I've found solution:
> 
> #!/bin/sh
> 
> xres $1 -o xxx
> strip $1
> xres -o $1 xres.output.rsrc
> rm -f xres.output.rsrc
> 
> 
> BTW. It looks like "-o xxx" is ignored.

The xres parameters are processed as a list of commands. You have to give 
the output file option before the parameters that shall write output to 
that file.

CU, Ingo

Other related posts: