Blame elf/libc-early-init.h

Packit Service b61b6e
/* Early initialization of libc.so.
Packit Service b61b6e
   Copyright (C) 2020 Free Software Foundation, Inc.
Packit Service b61b6e
   This file is part of the GNU C Library.
Packit Service b61b6e
Packit Service b61b6e
   The GNU C Library is free software; you can redistribute it and/or
Packit Service b61b6e
   modify it under the terms of the GNU Lesser General Public
Packit Service b61b6e
   License as published by the Free Software Foundation; either
Packit Service b61b6e
   version 2.1 of the License, or (at your option) any later version.
Packit Service b61b6e
Packit Service b61b6e
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service b61b6e
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service b61b6e
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service b61b6e
   Lesser General Public License for more details.
Packit Service b61b6e
Packit Service b61b6e
   You should have received a copy of the GNU Lesser General Public
Packit Service b61b6e
   License along with the GNU C Library; if not, see
Packit Service b61b6e
   <https://www.gnu.org/licenses/>.  */
Packit Service b61b6e
Packit Service b61b6e
#ifndef _LIBC_EARLY_INIT_H
Packit Service b61b6e
#define _LIBC_EARLY_INIT_H
Packit Service b61b6e
Packit Service b61b6e
struct link_map;
Packit Service b61b6e
Packit Service b61b6e
/* If LIBC_MAP is not NULL, look up the __libc_early_init symbol in it
Packit Service 7f405e
   and call this function, with INITIAL as the argument.  */
Packit Service 7f405e
void _dl_call_libc_early_init (struct link_map *libc_map, _Bool initial)
Packit Service 7f405e
  attribute_hidden;
Packit Service b61b6e
Packit Service b61b6e
/* In the shared case, this function is defined in libc.so and invoked
Packit Service b61b6e
   from ld.so (or on the fist static dlopen) after complete relocation
Packit Service b61b6e
   of a new loaded libc.so, but before user-defined ELF constructors
Packit Service b61b6e
   run.  In the static case, this function is called directly from the
Packit Service 7f405e
   startup code.  If INITIAL is true, the libc being initialized is
Packit Service 7f405e
   the libc for the main program.  INITIAL is false for libcs loaded
Packit Service 7f405e
   for audit modules, dlmopen, and static dlopen.  */
Packit Service 7f405e
void __libc_early_init (_Bool initial);
Packit Service b61b6e
Packit Service b61b6e
#endif /* _LIBC_EARLY_INIT_H */