aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/generic
diff options
context:
space:
mode:
authorFlorian Weimer <fweimer@redhat.com>2022-09-06 07:38:10 +0200
committerFlorian Weimer <fweimer@redhat.com>2022-09-06 07:38:33 +0200
commitdbb75513f5cf9285c77c9e55777c5c35b653f890 (patch)
treed0802a9ec0295fcd787be0d425e522a351344767 /sysdeps/generic
parent183d99737298bb3200f0610fdcd1c7549c8ed560 (diff)
downloadglibc-dbb75513f5cf9285c77c9e55777c5c35b653f890.tar
glibc-dbb75513f5cf9285c77c9e55777c5c35b653f890.tar.gz
glibc-dbb75513f5cf9285c77c9e55777c5c35b653f890.tar.bz2
glibc-dbb75513f5cf9285c77c9e55777c5c35b653f890.zip
elf: Rename _dl_sort_maps parameter from skip to force_first
The new implementation will not be able to skip an arbitrary number of objects. Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'sysdeps/generic')
-rw-r--r--sysdeps/generic/ldsodefs.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sysdeps/generic/ldsodefs.h b/sysdeps/generic/ldsodefs.h
index 050a3032de..6b256b8388 100644
--- a/sysdeps/generic/ldsodefs.h
+++ b/sysdeps/generic/ldsodefs.h
@@ -1048,9 +1048,11 @@ extern void _dl_init (struct link_map *main_map, int argc, char **argv,
initializer functions have completed. */
extern void _dl_fini (void) attribute_hidden;
-/* Sort array MAPS according to dependencies of the contained objects. */
+/* Sort array MAPS according to dependencies of the contained objects.
+ If FORCE_FIRST, MAPS[0] keeps its place even if the dependencies
+ say otherwise. */
extern void _dl_sort_maps (struct link_map **maps, unsigned int nmaps,
- unsigned int skip, bool for_fini) attribute_hidden;
+ bool force_first, bool for_fini) attribute_hidden;
/* The dynamic linker calls this function before and having changing
any shared object mappings. The `r_state' member of `struct r_debug'