Blame elf/tst-finilazyfailmod.c

Packit Service ef54c5
/* Helper module for tst-initfinilazyfail: lazy binding failure in destructor.
Packit Service ef54c5
   Copyright (C) 2019 Free Software Foundation, Inc.
Packit Service ef54c5
   This file is part of the GNU C Library.
Packit Service ef54c5
Packit Service ef54c5
   The GNU C Library is free software; you can redistribute it and/or
Packit Service ef54c5
   modify it under the terms of the GNU Lesser General Public
Packit Service ef54c5
   License as published by the Free Software Foundation; either
Packit Service ef54c5
   version 2.1 of the License, or (at your option) any later version.
Packit Service ef54c5
Packit Service ef54c5
   The GNU C Library is distributed in the hope that it will be useful,
Packit Service ef54c5
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Service ef54c5
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Service ef54c5
   Lesser General Public License for more details.
Packit Service ef54c5
Packit Service ef54c5
   You should have received a copy of the GNU Lesser General Public
Packit Service ef54c5
   License along with the GNU C Library; if not, see
Packit Service ef54c5
   <https://www.gnu.org/licenses/>.  */
Packit Service ef54c5
Packit Service ef54c5
/* An undefined function.  Calling it will cause a lazy binding
Packit Service ef54c5
   failure.  */
Packit Service ef54c5
void undefined_function (void);
Packit Service ef54c5
Packit Service ef54c5
static void __attribute__ ((destructor))
Packit Service ef54c5
fini (void)
Packit Service ef54c5
{
Packit Service ef54c5
  undefined_function ();
Packit Service ef54c5
}