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