This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
How can I rewrite _start(entry point) of main function
- From: Jason Yang <jasonyangshadow at gmail dot com>
- To: libc-alpha at sourceware dot org
- Date: Sun, 19 Jan 2020 00:05:37 +0900
- Subject: How can I rewrite _start(entry point) of main function
Dear developers:
I have a demand that changing the argv array passed to main function
after execve syscall. I knew that _start or even __libc_start_main are
called before user's main function is called. Can I use LD_PRELOAD
tricks to overwrite _start or any other functions in order for the
modifications of argv before user's main function is called?
Thanks so much! Looking forward your responses!
Regards,
Jason