[haiku-development] Re: BeOS resources and strip

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.

-- 
Grzegorz Dąbrowski (kaliber)

http://tiltos.com
http://home.gna.org/pingwinek/



Other related posts: