From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from gnu.wildebeest.org (gnu.wildebeest.org [45.83.234.184]) by sourceware.org (Postfix) with ESMTPS id 8804D3858C66 for ; Fri, 31 May 2024 12:39:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 8804D3858C66 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=klomp.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=klomp.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 8804D3858C66 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=45.83.234.184 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1717159201; cv=none; b=NefecWmyIrQ81Tzerc0GK7yfJDPiqto/rpeA72WA2pbRnURUB1e00MOrILM4v5m3z2V/E0NwcxZn/+u40WZ3uhpJZaiOI5cd8ANIhjnT5hLjWgYvEongVd0CHnWGcoS9+1WK1lbOcNEy6L0kRAGFzw4PTuQofrnLqld6Rr9SI7I= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1717159201; c=relaxed/simple; bh=XqH1rxNVsOzR4A9tvHHeyAeTboY72w4hCHmj5VdT3JA=; h=From:To:Subject:Date:Message-ID:MIME-Version; b=HBbmpKDxzTaifjObbjmg930FEQYQU8xnuVQmdfK9nHtXsho4WeP+1Ut4h8iQnrxjk/2HSImbEQDKDFdUvUxQQ1BKWlMIiTRoUVm1v4HY7NrAwIey/MbEQWKF3+R280bXKviKmCZ48OhAkPu0FFPeRGqJFG7mMi3FsC+6AcvAh8M= ARC-Authentication-Results: i=1; server2.sourceware.org Received: from r6.localdomain (82-217-174-174.cable.dynamic.v4.ziggo.nl [82.217.174.174]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by gnu.wildebeest.org (Postfix) with ESMTPSA id 30F4E30275BF; Fri, 31 May 2024 14:39:58 +0200 (CEST) Received: by r6.localdomain (Postfix, from userid 1000) id 0197134061D; Fri, 31 May 2024 14:39:57 +0200 (CEST) From: Mark Wielaard To: luca.boccassi@gmail.com Cc: elfutils-devel@sourceware.org, Mark Wielaard Subject: [PATCH 1/2] libelf: Sync elf.h from glibc Date: Fri, 31 May 2024 14:36:11 +0200 Message-ID: <20240531123939.481611-2-mark@klomp.org> X-Mailer: git-send-email 2.45.1 In-Reply-To: <20240531123939.481611-1-mark@klomp.org> References: <20240531123939.481611-1-mark@klomp.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-7.9 required=5.0 tests=BAYES_00,GIT_PATCH_0,JMQ_SPF_NEUTRAL,KAM_DMARC_STATUS,RCVD_IN_BARRACUDACENTRAL,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE,URIBL_SBL_A autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: * libelf/elf.h: Adds AT_HWCAP{3,4}, NT_FDO_DLOPEN_METADATA and R_LARCH_TLS_DESC{32,64}. Signed-off-by: Mark Wielaard --- libelf/elf.h | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/libelf/elf.h b/libelf/elf.h index f2206e5c065d..081742a9c38c 100644 --- a/libelf/elf.h +++ b/libelf/elf.h @@ -1234,6 +1234,10 @@ typedef struct #define AT_RSEQ_FEATURE_SIZE 27 /* rseq supported feature size. */ #define AT_RSEQ_ALIGN 28 /* rseq allocation alignment. */ +/* More machine-dependent hints about processor capabilities. */ +#define AT_HWCAP3 29 /* extension of AT_HWCAP. */ +#define AT_HWCAP4 30 /* extension of AT_HWCAP. */ + #define AT_EXECFN 31 /* Filename of executable. */ /* Pointer to the global system page used for system calls and other @@ -1333,9 +1337,13 @@ typedef struct #define NT_GNU_PROPERTY_TYPE_0 5 /* Packaging metadata as defined on - https://systemd.io/COREDUMP_PACKAGE_METADATA/ */ + https://systemd.io/ELF_PACKAGE_METADATA/ */ #define NT_FDO_PACKAGING_METADATA 0xcafe1a7e +/* dlopen metadata as defined on + https://systemd.io/ELF_DLOPEN_METADATA/ */ +#define NT_FDO_DLOPEN_METADATA 0x407c0c0a + /* Note section name of program property. */ #define NOTE_GNU_PROPERTY_SECTION_NAME ".note.gnu.property" @@ -4237,6 +4245,8 @@ enum #define R_LARCH_TLS_TPREL32 10 #define R_LARCH_TLS_TPREL64 11 #define R_LARCH_IRELATIVE 12 +#define R_LARCH_TLS_DESC32 13 +#define R_LARCH_TLS_DESC64 14 /* Reserved for future relocs that the dynamic linker must understand. */ -- 2.45.1