From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id 9ED5B3854170; Wed, 26 Oct 2022 15:11:43 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 9ED5B3854170 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666797103; bh=m1ckrUYfARM7t/JqaUv+zCytj19IwSQPCEOgdohhXks=; h=From:To:Subject:Date:From; b=ZWx57ex6OlKTLPFqDVcHLht9A3ZRysIFCKQkF6LdFbeJAxetuUz8FBPMNGHgsG7Bv yit/KyOQ7rcP+uib7lACiJ7VKQyJQCAz6HTlZUQk2Y39xFJBYBG5esTGznK5xDUH0D 11NnoIqpwm97L64EpeGbOeQLbq3M4U3Rk4jj+u0M= Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: Szabolcs Nagy To: glibc-cvs@sourceware.org Subject: [glibc/arm/morello/main] cheri: Fix elf/tst-dlmodcount test X-Act-Checkin: glibc X-Git-Author: Szabolcs Nagy X-Git-Refname: refs/heads/arm/morello/main X-Git-Oldrev: e21f34e88f32b2d57cdc06dca0110e7baa510f78 X-Git-Newrev: 1e49dc13a634c16fa8be142a7eb208c7c18cf4a8 Message-Id: <20221026151143.9ED5B3854170@sourceware.org> Date: Wed, 26 Oct 2022 15:11:43 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=1e49dc13a634c16fa8be142a7eb208c7c18cf4a8 commit 1e49dc13a634c16fa8be142a7eb208c7c18cf4a8 Author: Szabolcs Nagy Date: Thu Apr 14 18:34:26 2022 +0100 cheri: Fix elf/tst-dlmodcount test switch statement does not work for intptr_t, use a large int type that's guaranteed to work. Diff: --- elf/tst-dlmodcount.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/elf/tst-dlmodcount.c b/elf/tst-dlmodcount.c index 8a96803d85..ba9fb171f3 100644 --- a/elf/tst-dlmodcount.c +++ b/elf/tst-dlmodcount.c @@ -30,7 +30,7 @@ static int callback (struct dl_phdr_info *info, size_t size, void *ptr) { static int last_adds = 0, last_subs = 0; - intptr_t cmd = (intptr_t) ptr; + unsigned long cmd = (intptr_t) ptr; printf (" size = %Zu\n", size); if (size < (offsetof (struct dl_phdr_info, dlpi_subs)