This is the mail archive of the gcc-help@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]
Other format: [Raw text]

Re: Execve() again


Brian Blietz <bblietz@iastate.edu> writes:

> I am assuming I need to modify execve() to do this, or
> can this be done otherwise?

I'm not entirely clear on what you are doing or why you are doing it,
but I think the place you want to make this change would be the
dynamic linker.  Unless you specifically need this modification to
work in statically linked binaries, it will be a lot easier to work
with the dynamic linker, which is a userland program, than with
execve, which is a kernel system call.

This kind of thing would normally be done using a dynamic reloc, not a
symbol table entry.

Ian


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