[PATCH 13/14] dlfcn: Eliminate GLIBC_PRIVATE dependency from tststatic2
Andreas Schwab
schwab@linux-m68k.org
Tue May 25 15:38:51 GMT 2021
On Mai 25 2021, Florian Weimer via Libc-alpha wrote:
> diff --git a/dlfcn/modstatic2.c b/dlfcn/modstatic2.c
> index 9b5aae8b9f..34568d4e6e 100644
> --- a/dlfcn/modstatic2.c
> +++ b/dlfcn/modstatic2.c
> @@ -4,6 +4,7 @@
> #include <stdlib.h>
> #include <string.h>
> #include <gnu/lib-names.h>
> +#include <first-versions.h>
>
> int test (FILE *out, int a);
>
> @@ -117,7 +118,7 @@ test (FILE *out, int a)
> exit (1);
> }
>
> - if (dlvsym (handle2, "_dlfcn_hook", "GLIBC_PRIVATE") == NULL)
> + if (dlvsym (handle2, "malloc", FIRST_VERSION_libc_malloc_STRING) == NULL)
Shouldn't that use a public symbol from libdl?
Andreas.
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1
"And now for something completely different."
More information about the Libc-alpha
mailing list