From d6e6a1c706321fe828c380e1826fa826cf075a87 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Mar 14 2021 14:57:45 +0000 Subject: Apply patch glibc-rh1410154-10.patch patch_name: glibc-rh1410154-10.patch present_in_specfile: true location_in_specfile: 253 --- diff --git a/elf/dl-open.c b/elf/dl-open.c index 25838b0..e13968d 100644 --- a/elf/dl-open.c +++ b/elf/dl-open.c @@ -619,6 +619,8 @@ dl_open_worker (void *a) _dl_debug_state (); LIBC_PROBE (map_complete, 3, args->nsid, r, new); + _dl_open_check (new); + /* Print scope information. */ if (__glibc_unlikely (GLRO(dl_debug_mask) & DL_DEBUG_SCOPES)) _dl_show_scope (new, 0); @@ -699,12 +701,6 @@ dl_open_worker (void *a) _dl_relocate_object (l, l->l_scope, reloc_mode, 0); } - /* NB: Workaround for [BZ #20839] which doesn't remove the NODELETE - object when _dl_open_check throws an exception. Move it after - relocation to avoid leaving the NODELETE object mapped without - relocation. */ - _dl_open_check (new); - /* This only performs the memory allocations. The actual update of the scopes happens below, after failure is impossible. */ resize_scopes (new);