From: Florian Weimer Date: Tue, 5 Jul 2022 12:40:38 +0000 (+0200) Subject: elf: Fix direction of NODELETE log messages during symbol lookup X-Git-Tag: glibc-2.36~84 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a9f9ee2381944cee8b4b50c5c8321e3529c77e49;p=thirdparty%2Fglibc.git elf: Fix direction of NODELETE log messages during symbol lookup 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 --- diff --git a/elf/dl-lookup.c b/elf/dl-lookup.c index 8cb32321da3..4c86dc694e0 100644 --- a/elf/dl-lookup.c +++ b/elf/dl-lookup.c @@ -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); }