]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
[BZ #17250] Fix static dlopen default library search path
authorMaciej W. Rozycki <macro@imgtec.com>
Fri, 25 Sep 2015 08:37:12 +0000 (09:37 +0100)
committerMike Frysinger <vapier@gentoo.org>
Sat, 26 Sep 2015 18:18:51 +0000 (14:18 -0400)
Fix a regression introduced with commit 0d23a5c1 [Static dlopen
correction fallout fixes] that caused the default library search path to
be ignored for modules loaded with dlopen from static executables.

[BZ #17250]
* elf/dl-support.c (_dl_main_map): Don't initialize l_flags_1
member.

(cherry picked from commit 93bad7c97c7047ecaf7664859e2b49c0fe995443)

elf/dl-support.c

index 4d036f12dd3684de0a62e728baf6c3c383ac5b55..835dcb341710aa4debb277ad22ec9eae97dd91e2 100644 (file)
@@ -91,7 +91,6 @@ static struct link_map _dl_main_map =
     .l_scope = _dl_main_map.l_scope_mem,
     .l_local_scope = { &_dl_main_map.l_searchlist },
     .l_used = 1,
-    .l_flags_1 = DF_1_NODEFLIB,
     .l_tls_offset = NO_TLS_OFFSET,
     .l_serial = 1,
   };