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