Blame elf/tst-dlopenfailmod1.c

Packit Bot f2790b
/* Module which depends on two modules: one NODELETE, one missing.
Packit Bot f2790b
   Copyright (C) 2019 Free Software Foundation, Inc.
Packit Bot f2790b
   This file is part of the GNU C Library.
Packit Bot f2790b
Packit Bot f2790b
   The GNU C Library is free software; you can redistribute it and/or
Packit Bot f2790b
   modify it under the terms of the GNU Lesser General Public
Packit Bot f2790b
   License as published by the Free Software Foundation; either
Packit Bot f2790b
   version 2.1 of the License, or (at your option) any later version.
Packit Bot f2790b
Packit Bot f2790b
   The GNU C Library is distributed in the hope that it will be useful,
Packit Bot f2790b
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit Bot f2790b
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
Packit Bot f2790b
   Lesser General Public License for more details.
Packit Bot f2790b
Packit Bot f2790b
   You should have received a copy of the GNU Lesser General Public
Packit Bot f2790b
   License along with the GNU C Library; if not, see
Packit Bot f2790b
   <https://www.gnu.org/licenses/>.  */
Packit Bot f2790b
Packit Bot f2790b
/* Note: Due to the missing second module, this object cannot be
Packit Bot f2790b
   loaded at run time.  */
Packit Bot f2790b
Packit Bot f2790b
#include <pthread.h>
Packit Bot f2790b
#include <stdio.h>
Packit Bot f2790b
#include <unistd.h>
Packit Bot f2790b
Packit Bot f2790b
/* Force linking against libpthread.  */
Packit Bot f2790b
void *pthread_create_reference = pthread_create;
Packit Bot f2790b
Packit Bot f2790b
/* The constructor will never be executed because the module cannot be
Packit Bot f2790b
   loaded.  */
Packit Bot f2790b
static void __attribute__ ((constructor))
Packit Bot f2790b
init (void)
Packit Bot f2790b
{
Packit Bot f2790b
  puts ("tst-dlopenfailmod1 constructor executed");
Packit Bot f2790b
  _exit (1);
Packit Bot f2790b
}