diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2024-12-21 04:21:55 +0800 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2024-12-21 04:36:18 +0800 |
commit | 40bf25b75418a7fa22ffc22dc321465ae7061cd2 (patch) | |
tree | c4171b4bd8daf0e9bbf7afd43a0b5ea8556ca883 | |
parent | c3ee51026769f11115121059ab080736fec8c64c (diff) | |
download | glibc-40bf25b75418a7fa22ffc22dc321465ae7061cd2.zip glibc-40bf25b75418a7fa22ffc22dc321465ae7061cd2.tar.gz glibc-40bf25b75418a7fa22ffc22dc321465ae7061cd2.tar.bz2 |
Fix elf: Introduce is_rtld_link_map [BZ #32488]
Also use is_rtld_link_map in dl-cet.c. This fixes BZ #32488.
Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
-rw-r--r-- | sysdeps/x86_64/dl-cet.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/x86_64/dl-cet.c b/sysdeps/x86_64/dl-cet.c index 1297c09..7cde5ee 100644 --- a/sysdeps/x86_64/dl-cet.c +++ b/sysdeps/x86_64/dl-cet.c @@ -77,8 +77,8 @@ dl_check_legacy_object (struct link_map *m, /* Skip check for ld.so since it has the features enabled. The features will be disabled later if they are not enabled in executable. */ - if (l == &GL(dl_rtld_map) - || l->l_real == &GL(dl_rtld_map) + if (is_rtld_link_map (l) + || is_rtld_link_map (l->l_real) || (info->program != NULL && l == m)) continue; #endif |