[PATCH v10 3/4] elf: Issue la_symbind for bind-now (BZ #23734)
Florian Weimer
fweimer@redhat.com
Fri Jan 21 11:18:14 GMT 2022
* Adhemerval Zanella via Libc-alpha:
> +static int
> +do_test (int argc, char *argv[])
> +{
> + /* We must have either:
> + - One our fource parameters left if called initially:
> + + path to ld.so optional
> + + "--library-path" optional
> + + the library path optional
> + + the application name */
> +
> + if (restart)
> + return handle_restart ();
> +
> + setenv ("LD_AUDIT", "tst-auditmod25.so", 0);
> +
> + char *spargv[9];
> + int i = 0;
> + for (; i < argc - 1; i++)
> + spargv[i] = argv[i + 1];
> + spargv[i++] = (char *) "--direct";
> + spargv[i++] = (char *) "--restart";
> + spargv[i] = NULL;
This could have an argc check. The rest looks okay to me.
I'd like to post a subsequent patch that adds full symbind support for
all kinds of symbols.
Thanks,
Florian
More information about the Libc-alpha
mailing list