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