]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
elf: Fix direction of NODELETE log messages during symbol lookup
authorFlorian Weimer <fweimer@redhat.com>
Tue, 5 Jul 2022 12:40:38 +0000 (14:40 +0200)
committerFlorian Weimer <fweimer@redhat.com>
Tue, 5 Jul 2022 12:40:38 +0000 (14:40 +0200)
NODELETE status is propagated from the referencing object to the
referenced object, not the other way round.  The code is correct, only
the log message has the wrong direction.

Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
elf/dl-lookup.c

index 8cb32321da33ea4f41e4a6cee038c2a6697ad817..4c86dc694e0eebb23421e08103ee7f3c0adaadf9 100644 (file)
@@ -646,11 +646,11 @@ add_dependency (struct link_map *undef_map, struct link_map *map, int flags)
            {
              if (undef_map->l_name[0] == '\0')
                _dl_debug_printf ("\
-marking %s [%lu] as NODELETE due to reference to main program\n",
+marking %s [%lu] as NODELETE due to reference from main program\n",
                                  map->l_name, map->l_ns);
              else
                _dl_debug_printf ("\
-marking %s [%lu] as NODELETE due to reference to %s [%lu]\n",
+marking %s [%lu] as NODELETE due to reference from %s [%lu]\n",
                                  map->l_name, map->l_ns,
                                  undef_map->l_name, undef_map->l_ns);
            }