c - Is the linker retained after a call to exec? -
i'm trying watch linker load libraries , search symbols in zygote on android.
zygote started init (or start/stop zygote command on cli). in init.*.rc files, i've modified have environment variable of ld_debug=2 (via setenv ld_debug 2 in init.zygote[32|64].rc file). in linker code, should print debugging information logcat, if invoke program command line, ie: "ld_debug=2 ./myprogram".
however, not work zygote. took @ /proc/[zygote's pid]/environ, , ld_debug=2 there.
the linker code service (among other things) sets environment array, calls fork(), little more work, , calls exec() array created.
so, i'm wondering, there way linker retained across fork-exec? didn't think possible, since thought exec wiped process's memory space.
i see how if retained, wouldn't invoked again, since linker has been loaded, if process memory space being wiped, doesn't make sense.
Comments
Post a Comment