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