This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: Execve() again
- From: Ian Lance Taylor <ian at wasabisystems dot com>
- To: Brian Blietz <bblietz at iastate dot edu>
- Cc: gcc-help at gcc dot gnu dot org, lrtaylor at micron dot com
- Date: 23 Jan 2004 20:26:32 -0500
- Subject: Re: Execve() again
- References: <4011BB52.1080600@eng.iastate.edu>
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