handle AT_SYSINFO for static binaries, too
David Mosberger
davidm@napali.hpl.hp.com
Thu Jan 30 16:49:00 GMT 2003
I needed the attached patch to get dl_sysinfo initialized in static
binaries. Isn't this needed for x86 as well?
--david
2003-01-29 <davidm@hpl.hp.com>
* elf/dl-support.c (_dl_aux_init): Handle AT_SYSINFO.
Index: elf/dl-support.c
===================================================================
RCS file: /cvs/glibc/libc/elf/dl-support.c,v
retrieving revision 1.67
diff -u -r1.67 dl-support.c
--- elf/dl-support.c 7 Jan 2003 18:50:59 -0000 1.67
+++ elf/dl-support.c 30 Jan 2003 06:28:23 -0000
@@ -161,6 +161,11 @@
case AT_PHNUM:
GL(dl_phnum) = av->a_un.a_val;
break;
+#ifdef NEED_DL_SYSINFO
+ case AT_SYSINFO:
+ GL(dl_sysinfo) = av->a_un.a_val;
+ break;
+#endif
}
}
#endif
More information about the Libc-hacker
mailing list