]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Fix elf: Introduce is_rtld_link_map [BZ #32488]
authorH.J. Lu <hjl.tools@gmail.com>
Fri, 20 Dec 2024 20:21:55 +0000 (04:21 +0800)
committerH.J. Lu <hjl.tools@gmail.com>
Fri, 20 Dec 2024 20:36:18 +0000 (04:36 +0800)
Also use is_rtld_link_map in dl-cet.c.  This fixes BZ #32488.

Signed-off-by: H.J. Lu <hjl.tools@gmail.com>
sysdeps/x86_64/dl-cet.c

index 1297c09f841a5fcceab584273e960ec268f7f20a..7cde5ee0dcc661f933c3d6f3d5a77af9b064fbc4 100644 (file)
@@ -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