1 static int find_vdso_map(void **start, void **end)
7 maps = fopen("/proc/self/maps", "r");
9 fprintf(stderr, "vdso: cannot open maps\n");
13 while (!found && fgets(line, sizeof(line), maps)) {
16 /* We care only about private r-x mappings. */
17 if (2 != sscanf(line, "%p-%p r-xp %*x %*x:%*x %*u %n",
23 if (!strncmp(&line[m], VDSO__MAP_NAME,
24 sizeof(VDSO__MAP_NAME) - 1))