2008/198: elfwrap - wrap data in an ELF file
Rod Evans
Rod.Evans at sun.com
Wed Mar 19 13:28:47 PDT 2008
Roland Mainz wrote:
>>> What about adding an option to override "basename" with a different
>>> string ?
>> Anything is possible. Initially, I strived for simplicity.
>
> Ok... but a "basename" option may be usefull to avoid "ugly" filenames
> in the filesystem, e.g. mangled C++ names may not look "pretty" when
> they appear in the filesystem (and for more complex C++ symbol names you
> may hit the maximum filename length sooner or later...).
Sure, it would be easy to add an option to provide for this if required.
(although I'd mot sure why you'd come up with a mangled C++ name in the
first place that you'd have to override).
> BTW: What about question about "read-only" in my previous email... does
> this matter in this case ?
Sorry, missed this one. Presently the data is simply tagged SHF_ALLOC,
as those that have requested to use elfwrap() simply wanted to read data
in. Again, options could allow you to set any sections flags, and rather
than a simplistic -w (write) flag I'd probably go the route of allowing
any valid SHF_ flag to be set.
There again, you could elfwrap(1) something and elfedit(1) it after :-)
--
Rod.
More information about the opensolaris-arc
mailing list