]> sourceware.org Git - glibc.git/blob - elf/libc-early-init.h
elf: Implement __libc_early_init
[glibc.git] / elf / libc-early-init.h
1 /* Early initialization of libc.so.
2 Copyright (C) 2020 Free Software Foundation, Inc.
3 This file is part of the GNU C Library.
4
5 The GNU C Library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Lesser General Public
7 License as published by the Free Software Foundation; either
8 version 2.1 of the License, or (at your option) any later version.
9
10 The GNU C Library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Lesser General Public License for more details.
14
15 You should have received a copy of the GNU Lesser General Public
16 License along with the GNU C Library; if not, see
17 <https://www.gnu.org/licenses/>. */
18
19 #ifndef _LIBC_EARLY_INIT_H
20 #define _LIBC_EARLY_INIT_H
21
22 struct link_map;
23
24 /* If LIBC_MAP is not NULL, look up the __libc_early_init symbol in it
25 and call this function. */
26 void _dl_call_libc_early_init (struct link_map *libc_map) attribute_hidden;
27
28 /* In the shared case, this function is defined in libc.so and invoked
29 from ld.so (or on the fist static dlopen) after complete relocation
30 of a new loaded libc.so, but before user-defined ELF constructors
31 run. In the static case, this function is called directly from the
32 startup code. */
33 void __libc_early_init (void);
34
35 #endif /* _LIBC_EARLY_INIT_H */
This page took 0.036182 seconds and 5 git commands to generate.