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