From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 1944) id 514253851526; Thu, 27 Oct 2022 13:58:33 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 514253851526 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1666879113; bh=BLMWUZEL8k5lwYI2qt3ms4Qy8Afniv16XBwvWct4BkU=; h=From:To:Subject:Date:From; b=HJFtfi8nEsuXe+dInNAEXKpnO3CyhPGtUFFp5Pv5VtXxZmUJy0p0E4jmKKFFf6Jdp wU2AAfVCk7x7h8jOx7xcMDZXq2sDlf5Ci1WhDtmx0Qt00GM9XG6PlqZPDwVlJ3t02L Ac1cKCynS1JpQfbN+OKA33YtTqlJB+2GggA/ZGvg= 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: elf: Use elfptr_t for function symbol fixup X-Act-Checkin: glibc X-Git-Author: Szabolcs Nagy X-Git-Refname: refs/heads/arm/morello/main X-Git-Oldrev: 6716729644e3ada162b4771b0d5852140142bc42 X-Git-Newrev: ddd4011014924bd46d9fce4cc5333bea9d792d41 Message-Id: <20221027135833.514253851526@sourceware.org> Date: Thu, 27 Oct 2022 13:58:33 +0000 (GMT) List-Id: https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=ddd4011014924bd46d9fce4cc5333bea9d792d41 commit ddd4011014924bd46d9fce4cc5333bea9d792d41 Author: Szabolcs Nagy Date: Thu Oct 20 17:27:04 2022 +0100 cheri: elf: Use elfptr_t for function symbol fixup Propagate capabilities during lazy binding and IFUNC fixup in dlsym. Diff: --- elf/dl-sym-post.h | 2 +- sysdeps/generic/dl-lookupcfg.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/elf/dl-sym-post.h b/elf/dl-sym-post.h index 28ca1cad7e..7c8b9b6e77 100644 --- a/elf/dl-sym-post.h +++ b/elf/dl-sym-post.h @@ -41,7 +41,7 @@ _dl_sym_post (lookup_t result, const ElfW(Sym) *ref, void *value, if (__glibc_unlikely (ELFW(ST_TYPE) (ref->st_info) == STT_GNU_IFUNC)) { DL_FIXUP_VALUE_TYPE fixup - = DL_FIXUP_MAKE_VALUE (result, (ElfW(Addr)) value); + = DL_FIXUP_MAKE_VALUE (result, (elfptr_t) value); fixup = elf_ifunc_invoke (DL_FIXUP_VALUE_ADDR (fixup)); value = (void *) DL_FIXUP_VALUE_CODE_ADDR (fixup); } diff --git a/sysdeps/generic/dl-lookupcfg.h b/sysdeps/generic/dl-lookupcfg.h index 95bcfc1cc1..149945614b 100644 --- a/sysdeps/generic/dl-lookupcfg.h +++ b/sysdeps/generic/dl-lookupcfg.h @@ -17,7 +17,7 @@ . */ /* The type of the return value of fixup/profile_fixup. */ -#define DL_FIXUP_VALUE_TYPE ElfW(Addr) +#define DL_FIXUP_VALUE_TYPE elfptr_t /* Construct a value of type DL_FIXUP_VALUE_TYPE from a code address and a link map. */ #define DL_FIXUP_MAKE_VALUE(map, addr) (addr)