From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 9341926A1C8 for ; Fri, 28 Feb 2025 12:24:45 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=217.140.110.172 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740745486; cv=none; b=nfbH63wDyN6ny8lxmwkN81TkNLUhvvZOXi2vDRaEq31XBGMll4vVaXJHGo0xLptKXil5/klRXoVyBi2irQNmNl+g604qj/VHRkvDeuSuh/O5unfUpXDDQxjz3A+idZjS1iKs2FvCeUqBd6iNM/yz+5BQo10bZ3RBr6nOuLtqyfw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1740745486; c=relaxed/simple; bh=XEo2F33a0Ti/Z5D7GEbwdyKrCV9Yqq9t4Xa23qpJfWw=; h=Message-ID:Date:MIME-Version:Subject:To:Cc:References:From: In-Reply-To:Content-Type; b=tA1xEsA5/2qZfKZ9MEtVTmrYIdz9HTce1Id7eLer9tvvusrUrxDuaju0oaKPFppB+qAie353ab3IpDLler0wHJhUKQtKGiEX7igs5eEr7WJfzai12Q8jPxz68zjRzrFn5U657v4ujiRCe4yP+RWqS2DYXptTcbrjLzmbybkOzns= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com; spf=pass smtp.mailfrom=arm.com; arc=none smtp.client-ip=217.140.110.172 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=arm.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=arm.com Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 5E3DF1688; Fri, 28 Feb 2025 04:25:00 -0800 (PST) Received: from [10.1.196.72] (e119884-lin.cambridge.arm.com [10.1.196.72]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id B9C1F3F6A8; Fri, 28 Feb 2025 04:24:42 -0800 (PST) Message-ID: Date: Fri, 28 Feb 2025 12:24:41 +0000 Precedence: bulk X-Mailing-List: llvm@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH v2 05/16] elf, uapi: Add type ElfXX_Versym To: =?UTF-8?Q?Thomas_Wei=C3=9Fschuh?= , Kees Cook , Eric Biederman , Shuah Khan , Nathan Chancellor , Nick Desaulniers , Bill Wendling , Justin Stitt , Andy Lutomirski , Thomas Gleixner , Willy Tarreau , =?UTF-8?Q?Thomas_Wei=C3=9Fschuh?= Cc: "Jason A. Donenfeld" , Christophe Leroy , linux-mm@kvack.org, linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, llvm@lists.linux.dev References: <20250226-parse_vdso-nolibc-v2-0-28e14e031ed8@linutronix.de> <20250226-parse_vdso-nolibc-v2-5-28e14e031ed8@linutronix.de> Content-Language: en-US From: Vincenzo Frascino In-Reply-To: <20250226-parse_vdso-nolibc-v2-5-28e14e031ed8@linutronix.de> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit On 26/02/2025 11:44, Thomas Weißschuh wrote: > The types are used by tools/testing/selftests/vDSO/parse_vdso.c. > To be able to build the vDSO selftests without a libc dependency, > add the types to the kernels own UAPI headers. > > As documented by elf(5). > > Reviewed-by: Kees Cook > Signed-off-by: Thomas Weißschuh > --- > include/uapi/linux/elf.h | 2 ++ > 1 file changed, 2 insertions(+) > > diff --git a/include/uapi/linux/elf.h b/include/uapi/linux/elf.h > index d040f12ff1c0ae3dde5c371c81d6089118fbe8ed..8846fe03ca5b836c96aad1be6d8fb9daf3d4b1d9 100644 > --- a/include/uapi/linux/elf.h > +++ b/include/uapi/linux/elf.h > @@ -11,6 +11,7 @@ typedef __u16 Elf32_Half; > typedef __u32 Elf32_Off; > typedef __s32 Elf32_Sword; > typedef __u32 Elf32_Word; > +typedef __u16 Elf32_Versym; > > /* 64-bit ELF base types. */ > typedef __u64 Elf64_Addr; > @@ -21,6 +22,7 @@ typedef __s32 Elf64_Sword; > typedef __u32 Elf64_Word; > typedef __u64 Elf64_Xword; > typedef __s64 Elf64_Sxword; > +typedef __u16 Elf64_Versym; > > /* These constants are for the segment types stored in the image headers */ > #define PT_NULL 0 > Reviewed-by: Vincenzo Frascino -- Regards, Vincenzo