From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 109662 invoked by alias); 28 Oct 2019 09:30:04 -0000 Mailing-List: contact glibc-cvs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: , Sender: glibc-cvs-owner@sourceware.org List-Subscribe: Received: (qmail 109619 invoked by uid 9299); 28 Oct 2019 09:30:03 -0000 Date: Mon, 28 Oct 2019 09:30:00 -0000 Message-ID: <20191028093003.109618.qmail@sourceware.org> Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Florian Weimer To: glibc-cvs@sourceware.org Subject: [glibc/fw/bug25112] WIP fix other rollback issues related to malloc X-Act-Checkin: glibc X-Git-Author: Florian Weimer X-Git-Refname: refs/heads/fw/bug25112 X-Git-Oldrev: f404f789ce2a968281ddadbe5df9458a0517d623 X-Git-Newrev: 9c623ce625ede3ebd5fad9568512ecc3edcd1549 X-SW-Source: 2019-q4/txt/msg00179.txt.bz2 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=9c623ce625ede3ebd5fad9568512ecc3edcd1549 commit 9c623ce625ede3ebd5fad9568512ecc3edcd1549 Author: Florian Weimer 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. */