Blame elf/tst-initlazyfailmod.c

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