|
Packit |
6c4009 |
/* x86 CET initializers function.
|
|
Packit |
6c4009 |
Copyright (C) 2018 Free Software Foundation, Inc.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
The GNU C Library is free software; you can redistribute it and/or
|
|
Packit |
6c4009 |
modify it under the terms of the GNU Lesser General Public
|
|
Packit |
6c4009 |
License as published by the Free Software Foundation; either
|
|
Packit |
6c4009 |
version 2.1 of the License, or (at your option) any later version.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
The GNU C Library is distributed in the hope that it will be useful,
|
|
Packit |
6c4009 |
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
6c4009 |
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
6c4009 |
Lesser General Public License for more details.
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
You should have received a copy of the GNU Lesser General Public
|
|
Packit |
6c4009 |
License along with the GNU C Library; if not, see
|
|
Packit |
6c4009 |
<http://www.gnu.org/licenses/>. */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#include <unistd.h>
|
|
Packit |
6c4009 |
#include <errno.h>
|
|
Packit |
6c4009 |
#include <libintl.h>
|
|
Packit |
6c4009 |
#include <ldsodefs.h>
|
|
Packit |
6c4009 |
#include <dl-cet.h>
|
|
Packit Bot |
0c2104 |
#include <cet-tunables.h>
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* GNU_PROPERTY_X86_FEATURE_1_IBT and GNU_PROPERTY_X86_FEATURE_1_SHSTK
|
|
Packit |
6c4009 |
are defined in <elf.h>, which are only available for C sources.
|
|
Packit |
6c4009 |
X86_FEATURE_1_IBT and X86_FEATURE_1_SHSTK are defined in <sysdep.h>
|
|
Packit |
6c4009 |
which are available for both C and asm sources. They must match. */
|
|
Packit |
6c4009 |
#if GNU_PROPERTY_X86_FEATURE_1_IBT != X86_FEATURE_1_IBT
|
|
Packit |
6c4009 |
# error GNU_PROPERTY_X86_FEATURE_1_IBT != X86_FEATURE_1_IBT
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
#if GNU_PROPERTY_X86_FEATURE_1_SHSTK != X86_FEATURE_1_SHSTK
|
|
Packit |
6c4009 |
# error GNU_PROPERTY_X86_FEATURE_1_SHSTK != X86_FEATURE_1_SHSTK
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
|
|
Packit Bot |
0c2104 |
static int
|
|
Packit Bot |
0c2104 |
dl_cet_mark_legacy_region (struct link_map *l)
|
|
Packit Bot |
0c2104 |
{
|
|
Packit Bot |
0c2104 |
/* Mark PT_LOAD segments with PF_X in legacy code page bitmap. */
|
|
Packit Bot |
0c2104 |
size_t i, phnum = l->l_phnum;
|
|
Packit Bot |
0c2104 |
const ElfW(Phdr) *phdr = l->l_phdr;
|
|
Packit Bot |
0c2104 |
#ifdef __x86_64__
|
|
Packit Bot |
0c2104 |
typedef unsigned long long word_t;
|
|
Packit Bot |
0c2104 |
#else
|
|
Packit Bot |
0c2104 |
typedef unsigned long word_t;
|
|
Packit Bot |
0c2104 |
#endif
|
|
Packit Bot |
0c2104 |
unsigned int bits_to_set;
|
|
Packit Bot |
0c2104 |
word_t mask_to_set;
|
|
Packit Bot |
0c2104 |
#define BITS_PER_WORD (sizeof (word_t) * 8)
|
|
Packit Bot |
0c2104 |
#define BITMAP_FIRST_WORD_MASK(start) \
|
|
Packit Bot |
0c2104 |
(~((word_t) 0) << ((start) & (BITS_PER_WORD - 1)))
|
|
Packit Bot |
0c2104 |
#define BITMAP_LAST_WORD_MASK(nbits) \
|
|
Packit Bot |
0c2104 |
(~((word_t) 0) >> (-(nbits) & (BITS_PER_WORD - 1)))
|
|
Packit Bot |
0c2104 |
|
|
Packit Bot |
0c2104 |
word_t *bitmap = (word_t *) GL(dl_x86_legacy_bitmap)[0];
|
|
Packit Bot |
0c2104 |
word_t bitmap_size = GL(dl_x86_legacy_bitmap)[1];
|
|
Packit Bot |
0c2104 |
word_t *p;
|
|
Packit Bot |
0c2104 |
size_t page_size = GLRO(dl_pagesize);
|
|
Packit Bot |
0c2104 |
|
|
Packit Bot |
0c2104 |
for (i = 0; i < phnum; i++)
|
|
Packit Bot |
0c2104 |
if (phdr[i].p_type == PT_LOAD && (phdr[i].p_flags & PF_X))
|
|
Packit Bot |
0c2104 |
{
|
|
Packit Bot |
0c2104 |
/* One bit in legacy bitmap represents a page. */
|
|
Packit Bot |
0c2104 |
ElfW(Addr) start = (phdr[i].p_vaddr + l->l_addr) / page_size;
|
|
Packit Bot |
0c2104 |
ElfW(Addr) len = (phdr[i].p_memsz + page_size - 1) / page_size;
|
|
Packit Bot |
0c2104 |
ElfW(Addr) end = start + len;
|
|
Packit Bot |
0c2104 |
|
|
Packit Bot |
0c2104 |
if ((end / 8) > bitmap_size)
|
|
Packit Bot |
0c2104 |
return -EINVAL;
|
|
Packit Bot |
0c2104 |
|
|
Packit Bot |
0c2104 |
p = bitmap + (start / BITS_PER_WORD);
|
|
Packit Bot |
0c2104 |
bits_to_set = BITS_PER_WORD - (start % BITS_PER_WORD);
|
|
Packit Bot |
0c2104 |
mask_to_set = BITMAP_FIRST_WORD_MASK (start);
|
|
Packit Bot |
0c2104 |
|
|
Packit Bot |
0c2104 |
while (len >= bits_to_set)
|
|
Packit Bot |
0c2104 |
{
|
|
Packit Bot |
0c2104 |
*p |= mask_to_set;
|
|
Packit Bot |
0c2104 |
len -= bits_to_set;
|
|
Packit Bot |
0c2104 |
bits_to_set = BITS_PER_WORD;
|
|
Packit Bot |
0c2104 |
mask_to_set = ~((word_t) 0);
|
|
Packit Bot |
0c2104 |
p++;
|
|
Packit Bot |
0c2104 |
}
|
|
Packit Bot |
0c2104 |
if (len)
|
|
Packit Bot |
0c2104 |
{
|
|
Packit Bot |
0c2104 |
mask_to_set &= BITMAP_LAST_WORD_MASK (end);
|
|
Packit Bot |
0c2104 |
*p |= mask_to_set;
|
|
Packit Bot |
0c2104 |
}
|
|
Packit Bot |
0c2104 |
}
|
|
Packit Bot |
0c2104 |
|
|
Packit Bot |
0c2104 |
return 0;
|
|
Packit Bot |
0c2104 |
}
|
|
Packit Bot |
0c2104 |
|
|
Packit |
6c4009 |
/* Check if object M is compatible with CET. */
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
static void
|
|
Packit |
6c4009 |
dl_cet_check (struct link_map *m, const char *program)
|
|
Packit |
6c4009 |
{
|
|
Packit |
6c4009 |
/* Check how IBT should be enabled. */
|
|
Packit Bot |
0c2104 |
unsigned int enable_ibt_type
|
|
Packit Bot |
0c2104 |
= GL(dl_x86_feature_1)[1] & ((1 << CET_MAX) - 1);
|
|
Packit |
6c4009 |
/* Check how SHSTK should be enabled. */
|
|
Packit Bot |
0c2104 |
unsigned int enable_shstk_type
|
|
Packit Bot |
0c2104 |
= ((GL(dl_x86_feature_1)[1] >> CET_MAX) & ((1 << CET_MAX) - 1));
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* No legacy object check if both IBT and SHSTK are always on. */
|
|
Packit Bot |
0c2104 |
if (enable_ibt_type == CET_ALWAYS_ON
|
|
Packit Bot |
0c2104 |
&& enable_shstk_type == CET_ALWAYS_ON)
|
|
Packit |
6c4009 |
return;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Check if IBT is enabled by kernel. */
|
|
Packit |
6c4009 |
bool ibt_enabled
|
|
Packit Bot |
0c2104 |
= (GL(dl_x86_feature_1)[0] & GNU_PROPERTY_X86_FEATURE_1_IBT) != 0;
|
|
Packit |
6c4009 |
/* Check if SHSTK is enabled by kernel. */
|
|
Packit |
6c4009 |
bool shstk_enabled
|
|
Packit Bot |
0c2104 |
= (GL(dl_x86_feature_1)[0] & GNU_PROPERTY_X86_FEATURE_1_SHSTK) != 0;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
if (ibt_enabled || shstk_enabled)
|
|
Packit |
6c4009 |
{
|
|
Packit |
6c4009 |
struct link_map *l = NULL;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Check if IBT and SHSTK are enabled in object. */
|
|
Packit |
6c4009 |
bool enable_ibt = (ibt_enabled
|
|
Packit Bot |
0c2104 |
&& enable_ibt_type != CET_ALWAYS_OFF);
|
|
Packit |
6c4009 |
bool enable_shstk = (shstk_enabled
|
|
Packit Bot |
0c2104 |
&& enable_shstk_type != CET_ALWAYS_OFF);
|
|
Packit |
6c4009 |
if (program)
|
|
Packit |
6c4009 |
{
|
|
Packit |
6c4009 |
/* Enable IBT and SHSTK only if they are enabled in executable.
|
|
Packit |
6c4009 |
NB: IBT and SHSTK may be disabled by environment variable:
|
|
Packit |
6c4009 |
|
|
Packit Bot |
0c2104 |
GLIBC_TUNABLES=glibc.tune.hwcaps=-IBT,-SHSTK
|
|
Packit |
6c4009 |
*/
|
|
Packit Service |
9ae533 |
enable_ibt &= (HAS_CPU_FEATURE (IBT)
|
|
Packit Bot |
0c2104 |
&& (enable_ibt_type == CET_ALWAYS_ON
|
|
Packit |
6c4009 |
|| (m->l_cet & lc_ibt) != 0));
|
|
Packit Service |
9ae533 |
enable_shstk &= (HAS_CPU_FEATURE (SHSTK)
|
|
Packit Bot |
0c2104 |
&& (enable_shstk_type == CET_ALWAYS_ON
|
|
Packit |
6c4009 |
|| (m->l_cet & lc_shstk) != 0));
|
|
Packit |
6c4009 |
}
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* ld.so is CET-enabled by kernel. But shared objects may not
|
|
Packit |
6c4009 |
support IBT nor SHSTK. */
|
|
Packit |
6c4009 |
if (enable_ibt || enable_shstk)
|
|
Packit |
6c4009 |
{
|
|
Packit Bot |
0c2104 |
int res;
|
|
Packit |
6c4009 |
unsigned int i;
|
|
Packit Bot |
0c2104 |
unsigned int first_legacy, last_legacy;
|
|
Packit Bot |
0c2104 |
bool need_legacy_bitmap = false;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
i = m->l_searchlist.r_nlist;
|
|
Packit |
6c4009 |
while (i-- > 0)
|
|
Packit |
6c4009 |
{
|
|
Packit |
6c4009 |
/* Check each shared object to see if IBT and SHSTK are
|
|
Packit |
6c4009 |
enabled. */
|
|
Packit |
6c4009 |
l = m->l_initfini[i];
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
if (l->l_init_called)
|
|
Packit |
6c4009 |
continue;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#ifdef SHARED
|
|
Packit |
6c4009 |
/* Skip CET check for ld.so since ld.so is CET-enabled.
|
|
Packit |
6c4009 |
CET will be disabled later if CET isn't enabled in
|
|
Packit |
6c4009 |
executable. */
|
|
Packit |
6c4009 |
if (l == &GL(dl_rtld_map)
|
|
Packit |
6c4009 |
|| l->l_real == &GL(dl_rtld_map)
|
|
Packit |
6c4009 |
|| (program && l == m))
|
|
Packit |
6c4009 |
continue;
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
|
|
Packit Bot |
0c2104 |
if (enable_ibt
|
|
Packit Bot |
0c2104 |
&& enable_ibt_type != CET_ALWAYS_ON
|
|
Packit Bot |
0c2104 |
&& !(l->l_cet & lc_ibt))
|
|
Packit |
6c4009 |
{
|
|
Packit Bot |
0c2104 |
/* Remember the first and last legacy objects. */
|
|
Packit Bot |
0c2104 |
if (!need_legacy_bitmap)
|
|
Packit Bot |
0c2104 |
last_legacy = i;
|
|
Packit Bot |
0c2104 |
first_legacy = i;
|
|
Packit Bot |
0c2104 |
need_legacy_bitmap = true;
|
|
Packit |
6c4009 |
}
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* SHSTK is enabled only if it is enabled in executable as
|
|
Packit |
6c4009 |
well as all shared objects. */
|
|
Packit Bot |
0c2104 |
enable_shstk &= (enable_shstk_type == CET_ALWAYS_ON
|
|
Packit |
6c4009 |
|| (l->l_cet & lc_shstk) != 0);
|
|
Packit Bot |
0c2104 |
}
|
|
Packit Bot |
0c2104 |
|
|
Packit Bot |
0c2104 |
if (need_legacy_bitmap)
|
|
Packit Bot |
0c2104 |
{
|
|
Packit Bot |
0c2104 |
if (GL(dl_x86_legacy_bitmap)[0])
|
|
Packit Service |
3e830d |
{
|
|
Packit Bot |
0c2104 |
/* Change legacy bitmap to writable. */
|
|
Packit Bot |
0c2104 |
if (__mprotect ((void *) GL(dl_x86_legacy_bitmap)[0],
|
|
Packit Bot |
0c2104 |
GL(dl_x86_legacy_bitmap)[1],
|
|
Packit Bot |
0c2104 |
PROT_READ | PROT_WRITE) < 0)
|
|
Packit Bot |
0c2104 |
{
|
|
Packit Bot |
0c2104 |
mprotect_failure:
|
|
Packit Bot |
0c2104 |
if (program)
|
|
Packit Bot |
0c2104 |
_dl_fatal_printf ("%s: mprotect legacy bitmap failed\n",
|
|
Packit Bot |
0c2104 |
l->l_name);
|
|
Packit Bot |
0c2104 |
else
|
|
Packit Bot |
0c2104 |
_dl_signal_error (EINVAL, l->l_name, "dlopen",
|
|
Packit Bot |
0c2104 |
N_("mprotect legacy bitmap failed"));
|
|
Packit Bot |
0c2104 |
}
|
|
Packit Service |
3e830d |
}
|
|
Packit Bot |
0c2104 |
else
|
|
Packit Bot |
0c2104 |
{
|
|
Packit Bot |
0c2104 |
/* Allocate legacy bitmap. */
|
|
Packit Bot |
0c2104 |
int res = dl_cet_allocate_legacy_bitmap
|
|
Packit Bot |
0c2104 |
(GL(dl_x86_legacy_bitmap));
|
|
Packit Bot |
0c2104 |
if (res != 0)
|
|
Packit Bot |
0c2104 |
{
|
|
Packit Bot |
0c2104 |
if (program)
|
|
Packit Bot |
0c2104 |
_dl_fatal_printf ("%s: legacy bitmap isn't available\n",
|
|
Packit Bot |
0c2104 |
l->l_name);
|
|
Packit Bot |
0c2104 |
else
|
|
Packit Bot |
0c2104 |
_dl_signal_error (EINVAL, l->l_name, "dlopen",
|
|
Packit Bot |
0c2104 |
N_("legacy bitmap isn't available"));
|
|
Packit Bot |
0c2104 |
}
|
|
Packit Bot |
0c2104 |
}
|
|
Packit Bot |
0c2104 |
|
|
Packit Bot |
0c2104 |
/* Put legacy shared objects in legacy bitmap. */
|
|
Packit Bot |
0c2104 |
for (i = first_legacy; i <= last_legacy; i++)
|
|
Packit Bot |
0c2104 |
{
|
|
Packit Bot |
0c2104 |
l = m->l_initfini[i];
|
|
Packit Bot |
0c2104 |
|
|
Packit Bot |
0c2104 |
if (l->l_init_called || (l->l_cet & lc_ibt))
|
|
Packit Bot |
0c2104 |
continue;
|
|
Packit Bot |
0c2104 |
|
|
Packit Bot |
0c2104 |
#ifdef SHARED
|
|
Packit Bot |
0c2104 |
if (l == &GL(dl_rtld_map)
|
|
Packit Bot |
0c2104 |
|| l->l_real == &GL(dl_rtld_map)
|
|
Packit Bot |
0c2104 |
|| (program && l == m))
|
|
Packit Bot |
0c2104 |
continue;
|
|
Packit Bot |
0c2104 |
#endif
|
|
Packit Bot |
0c2104 |
|
|
Packit Bot |
0c2104 |
/* If IBT is enabled in executable and IBT isn't enabled
|
|
Packit Bot |
0c2104 |
in this shard object, mark PT_LOAD segments with PF_X
|
|
Packit Bot |
0c2104 |
in legacy code page bitmap. */
|
|
Packit Bot |
0c2104 |
res = dl_cet_mark_legacy_region (l);
|
|
Packit Bot |
0c2104 |
if (res != 0)
|
|
Packit Bot |
0c2104 |
{
|
|
Packit Bot |
0c2104 |
if (program)
|
|
Packit Bot |
0c2104 |
_dl_fatal_printf ("%s: failed to mark legacy code region\n",
|
|
Packit Bot |
0c2104 |
l->l_name);
|
|
Packit Bot |
0c2104 |
else
|
|
Packit Bot |
0c2104 |
_dl_signal_error (-res, l->l_name, "dlopen",
|
|
Packit Bot |
0c2104 |
N_("failed to mark legacy code region"));
|
|
Packit Bot |
0c2104 |
}
|
|
Packit Bot |
0c2104 |
}
|
|
Packit Bot |
0c2104 |
|
|
Packit Bot |
0c2104 |
/* Change legacy bitmap to read-only. */
|
|
Packit Bot |
0c2104 |
if (__mprotect ((void *) GL(dl_x86_legacy_bitmap)[0],
|
|
Packit Bot |
0c2104 |
GL(dl_x86_legacy_bitmap)[1], PROT_READ) < 0)
|
|
Packit Bot |
0c2104 |
goto mprotect_failure;
|
|
Packit |
6c4009 |
}
|
|
Packit |
6c4009 |
}
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
bool cet_feature_changed = false;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
if (enable_ibt != ibt_enabled || enable_shstk != shstk_enabled)
|
|
Packit |
6c4009 |
{
|
|
Packit Bot |
0c2104 |
if (!program
|
|
Packit Bot |
0c2104 |
&& enable_shstk_type != CET_PERMISSIVE)
|
|
Packit |
6c4009 |
{
|
|
Packit Bot |
0c2104 |
/* When SHSTK is enabled, we can't dlopening a shared
|
|
Packit Bot |
0c2104 |
object without SHSTK. */
|
|
Packit Bot |
0c2104 |
if (enable_shstk != shstk_enabled)
|
|
Packit Bot |
0c2104 |
_dl_signal_error (EINVAL, l->l_name, "dlopen",
|
|
Packit Bot |
0c2104 |
N_("shadow stack isn't enabled"));
|
|
Packit Bot |
0c2104 |
return;
|
|
Packit |
6c4009 |
}
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Disable IBT and/or SHSTK if they are enabled by kernel, but
|
|
Packit |
6c4009 |
disabled in executable or shared objects. */
|
|
Packit |
6c4009 |
unsigned int cet_feature = 0;
|
|
Packit |
6c4009 |
|
|
Packit Bot |
0c2104 |
/* Disable IBT only during program startup. */
|
|
Packit Bot |
0c2104 |
if (program && !enable_ibt)
|
|
Packit |
6c4009 |
cet_feature |= GNU_PROPERTY_X86_FEATURE_1_IBT;
|
|
Packit |
6c4009 |
if (!enable_shstk)
|
|
Packit |
6c4009 |
cet_feature |= GNU_PROPERTY_X86_FEATURE_1_SHSTK;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
int res = dl_cet_disable_cet (cet_feature);
|
|
Packit |
6c4009 |
if (res != 0)
|
|
Packit |
6c4009 |
{
|
|
Packit |
6c4009 |
if (program)
|
|
Packit |
6c4009 |
_dl_fatal_printf ("%s: can't disable CET\n", program);
|
|
Packit |
6c4009 |
else
|
|
Packit Bot |
0c2104 |
_dl_signal_error (-res, l->l_name, "dlopen",
|
|
Packit Bot |
0c2104 |
N_("can't disable CET"));
|
|
Packit |
6c4009 |
}
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
/* Clear the disabled bits in dl_x86_feature_1. */
|
|
Packit Bot |
0c2104 |
GL(dl_x86_feature_1)[0] &= ~cet_feature;
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
cet_feature_changed = true;
|
|
Packit |
6c4009 |
}
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#ifdef SHARED
|
|
Packit Bot |
0c2104 |
if (program
|
|
Packit Bot |
0c2104 |
&& (!shstk_enabled
|
|
Packit Bot |
0c2104 |
|| enable_shstk_type != CET_PERMISSIVE)
|
|
Packit Bot |
0c2104 |
&& (ibt_enabled || shstk_enabled))
|
|
Packit |
6c4009 |
{
|
|
Packit Bot |
0c2104 |
/* Lock CET if IBT or SHSTK is enabled in executable. Don't
|
|
Packit Bot |
0c2104 |
lock CET if SHSTK is enabled permissively. */
|
|
Packit Bot |
0c2104 |
int res = dl_cet_lock_cet ();
|
|
Packit Bot |
0c2104 |
if (res != 0)
|
|
Packit Bot |
0c2104 |
_dl_fatal_printf ("%s: can't lock CET\n", program);
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
cet_feature_changed = true;
|
|
Packit |
6c4009 |
}
|
|
Packit |
6c4009 |
#endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
if (cet_feature_changed)
|
|
Packit |
6c4009 |
{
|
|
Packit |
6c4009 |
unsigned int feature_1 = 0;
|
|
Packit |
6c4009 |
if (enable_ibt)
|
|
Packit |
6c4009 |
feature_1 |= GNU_PROPERTY_X86_FEATURE_1_IBT;
|
|
Packit |
6c4009 |
if (enable_shstk)
|
|
Packit |
6c4009 |
feature_1 |= GNU_PROPERTY_X86_FEATURE_1_SHSTK;
|
|
Packit |
6c4009 |
struct pthread *self = THREAD_SELF;
|
|
Packit |
6c4009 |
THREAD_SETMEM (self, header.feature_1, feature_1);
|
|
Packit |
6c4009 |
}
|
|
Packit |
6c4009 |
}
|
|
Packit |
6c4009 |
}
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
void
|
|
Packit |
6c4009 |
_dl_cet_open_check (struct link_map *l)
|
|
Packit |
6c4009 |
{
|
|
Packit |
6c4009 |
dl_cet_check (l, NULL);
|
|
Packit |
6c4009 |
}
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
#ifdef SHARED
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
# ifndef LINKAGE
|
|
Packit |
6c4009 |
# define LINKAGE
|
|
Packit |
6c4009 |
# endif
|
|
Packit |
6c4009 |
|
|
Packit |
6c4009 |
LINKAGE
|
|
Packit |
6c4009 |
void
|
|
Packit |
6c4009 |
_dl_cet_check (struct link_map *main_map, const char *program)
|
|
Packit |
6c4009 |
{
|
|
Packit |
6c4009 |
dl_cet_check (main_map, program);
|
|
Packit |
6c4009 |
}
|
|
Packit |
6c4009 |
#endif /* SHARED */
|