This is the mail archive of the gcc@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: UNIX resource compiler???



On Fri, 1 Jan 1999, Martin v. Loewis wrote:

> > Do you know of somebody who has written something like a 
> > resource compiler for Unix executables (NOT Win32 or Mac)?
> 
> Wine (Wine Is Not an Emulator) has a resource compiler for Windows
> resources, which works on Unix. This is probably not what you want,
> though.
> 
> If you just want to link the text files into the executable, why not
> just convert them into character array and link them in?
> 
> If you want to modify the executable after it has been linked, you
> need to deal with specific executable format. For ELF, there is an
> established interface (libelf) for reading and writing sections.
> 
> Please note that it is typically non-trivial to get a file handle for
> the executable that is just being executed, at least in a way that
> works 100%. For example, the file being executed might already be
> unlinked from the file system.

most systems will allows this via /proc your milage may vary.

-Alfred

> 
> Regards,
> Martin
> 


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]