Blame elf/tst-dlopenfailmod1.c

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