From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id B36AB3857BB2; Fri, 5 Aug 2022 19:30:00 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B36AB3857BB2 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: a87b3fcbb33e59dd9dc00d1aff88c0d80352f488 X-Git-Newrev: 1cb2ecf162dc13dae2d83f4fa5c0bb77abf29f17 Message-Id: <20220805193000.B36AB3857BB2@sourceware.org> Date: Fri, 5 Aug 2022 19:30:00 +0000 (GMT) X-BeenThere: glibc-cvs@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Glibc-cvs mailing list List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 05 Aug 2022 19:30:00 -0000 https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=1cb2ecf162dc13dae2d83f4fa5c0bb77abf29f17 commit 1cb2ecf162dc13dae2d83f4fa5c0bb77abf29f17 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)