From ec0debd33f10b215c139256ec4057a3235ac63d8 Mon Sep 17 00:00:00 2001 From: Packit Service Date: Mar 03 2021 08:40:09 +0000 Subject: Apply patch glibc-rh1812756-2.patch patch_name: glibc-rh1812756-2.patch present_in_specfile: true location_in_specfile: 300 --- diff --git a/elf/dl-open.c b/elf/dl-open.c index d31356f..980a28c 100644 --- a/elf/dl-open.c +++ b/elf/dl-open.c @@ -614,9 +614,10 @@ dl_open_worker (void *a) if (GLRO(dl_lazy)) reloc_mode |= mode & RTLD_LAZY; - /* Sort the objects by dependency for the relocation process. This - allows IFUNC relocations to work and it also means copy - relocation of dependencies are if necessary overwritten. */ + /* Objects must be sorted by dependency for the relocation process. + This allows IFUNC relocations to work and it also means copy + relocation of dependencies are if necessary overwritten. + __dl_map_object_deps has already sorted l_initfini for us. */ unsigned int nmaps = 0; unsigned int j = 0; struct link_map *l = new->l_initfini[0]; @@ -639,7 +640,6 @@ dl_open_worker (void *a) l = new->l_initfini[++j]; } while (l != NULL); - _dl_sort_maps (maps, nmaps, NULL, false); int relocation_in_progress = 0;