Execve() again

Ian Lance Taylor ian@wasabisystems.com
Sat Jan 24 01:26:00 GMT 2004


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



More information about the Gcc-help mailing list