From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id 461DA3846438; Thu, 27 Oct 2022 13:50:18 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 461DA3846438 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666878618; bh=G5MRxWWMq03ZhY4bISiXsmmPmosBr+H7qIrtxRlFrgA=; h=From:To:Subject:Date:From; b=cuiFYtnWDbxyzm0tCfEEOWSJk5RL9AKolg131NSkTDUdvKar5aK9thpe6Oou7pQjv e7U2+pUgrpa47fjuFQV59AXDbYgLQIYtj/hXDyHSlB2IYqWICxqWXqAmGy1KRQKliO pCzwLIMZwN84YYD0rQvrzncYFh/xcTUUV1I0U68w= 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: 75c97620ccea2c579175d423e1f91610ca0a9879 X-Git-Newrev: 3a69d7f241ab9f738479e039bd6eecf433868375 Message-Id: <20221027135018.461DA3846438@sourceware.org> Date: Thu, 27 Oct 2022 13:50:18 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=3a69d7f241ab9f738479e039bd6eecf433868375 commit 3a69d7f241ab9f738479e039bd6eecf433868375 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)