Blame elf/tst-finilazyfailmod.c

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