Blame elf/tst-initlazyfailmod.c

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