elf: Add tst-ldconfig-ld_so_conf-update test
[platform/upstream/glibc.git] / elf / tst-dlopen-tlsmodid.c
1 /* Test case for BZ #16634.  Non-PIE version.
2
3    Verify that incorrectly dlopen()ing an executable without
4    __RTLD_OPENEXEC does not cause assertion in ld.so, and that it
5    actually results in an error.
6
7    Copyright (C) 2014-2020 Free Software Foundation, Inc.
8    This file is part of the GNU C Library.
9
10    The GNU C Library is free software; you can redistribute it and/or
11    modify it under the terms of the GNU Lesser General Public
12    License as published by the Free Software Foundation; either
13    version 2.1 of the License, or (at your option) any later version.
14
15    The GNU C Library is distributed in the hope that it will be useful,
16    but WITHOUT ANY WARRANTY; without even the implied warranty of
17    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
18    Lesser General Public License for more details.
19
20    You should have received a copy of the GNU Lesser General Public
21    License along with the GNU C Library; if not, see
22    <https://www.gnu.org/licenses/>.  */
23
24 #define TST_DLOPEN_TLSMODID_PATH "tst-dlopen-self"
25 #include "tst-dlopen-tlsmodid.h"