This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
libc initialization and GCC's constructor with priority attribute
- From: VÃclav Haisman <vhaisman at gmail dot com>
- To: libc-help at sourceware dot org
- Date: Mon, 14 Sep 2015 11:17:32 +0200
- Subject: libc initialization and GCC's constructor with priority attribute
- Authentication-results: sourceware.org; auth=none
Hi.
I am trying to use the `__attribute__ ((__constructor__ ((prio))))`
GCC attribute to initialize my library early, if possible. What
concerns me is that I do not know what what priority I can safely use
so that libc is reliably initialized before my library, for obvious
reasons. So, the question is, at what priority is libc itself
initialized in the terms of this attribute?
--
VH