This is the mail archive of the
glibc-cvs@sourceware.org
mailing list for the glibc project.
[glibc/fw/bug25112] WIP fix other rollback issues related to malloc
- From: Florian Weimer <fw at sourceware dot org>
- To: glibc-cvs at sourceware dot org
- Date: 28 Oct 2019 09:30:03 -0000
- Subject: [glibc/fw/bug25112] WIP fix other rollback issues related to malloc
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9c623ce625ede3ebd5fad9568512ecc3edcd1549
commit 9c623ce625ede3ebd5fad9568512ecc3edcd1549
Author: Florian Weimer <fweimer@redhat.com>
Date: Thu Oct 24 13:44:18 2019 +0200
WIP fix other rollback issues related to malloc
Diff:
---
elf/dl-open.c | 19 +++++++++++++++++++
1 file changed, 19 insertions(+)
diff --git a/elf/dl-open.c b/elf/dl-open.c
index 656b4d2..51e62dd 100644
--- a/elf/dl-open.c
+++ b/elf/dl-open.c
@@ -201,6 +201,25 @@ add_to_global (struct link_map *new)
add_to_global_finish (new);
}
+/* Single-linked list of pending allocations for l_scope updates of
+ existing maps. The list elements also serve as the allocations to
+ use. */
+struct pending_scope
+{
+ struct link_map *map;
+ size_t objcts_to_add;
+ struct pending_scope *next;
+};
+
+/* Allocates a new l_scope array for MAP with COUNT elements. */
+static void
+allocate_pending_scope (struct pending_scope **head, struct link_map *map,
+ size_t to_add)
+{
+
+ return result;
+}
+
/* Search link maps in all namespaces for the DSO that contains the object at
address ADDR. Returns the pointer to the link map of the matching DSO, or
NULL if a match is not found. */