Blame elf/tst-initlazyfailmod.c

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