Blame elf/tst-dlopenfailmod2.c

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