From: Mark Wielaard <mark@klomp.org>
To: luca.boccassi@gmail.com
Cc: elfutils-devel@sourceware.org, Mark Wielaard <mark@klomp.org>
Subject: [PATCH 1/2] libelf: Sync elf.h from glibc
Date: Fri, 31 May 2024 14:36:11 +0200 [thread overview]
Message-ID: <20240531123939.481611-2-mark@klomp.org> (raw)
In-Reply-To: <20240531123939.481611-1-mark@klomp.org>
* libelf/elf.h: Adds AT_HWCAP{3,4}, NT_FDO_DLOPEN_METADATA
and R_LARCH_TLS_DESC{32,64}.
Signed-off-by: Mark Wielaard <mark@klomp.org>
---
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
next prev parent reply other threads:[~2024-05-31 12:39 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-05-10 21:58 [PATCH] readelf: add pretty printing for FDO Dlopen Metadata note luca.boccassi
2024-05-14 21:18 ` Mark Wielaard
2024-05-30 10:45 ` Luca Boccassi
2024-05-31 12:36 ` Mark Wielaard
2024-05-31 12:36 ` Mark Wielaard [this message]
2024-05-31 12:36 ` [PATCH 2/2] " Mark Wielaard
2024-05-31 12:43 ` [PATCH] " Luca Boccassi
-- strict thread matches above, loose matches on Subject: below --
2024-02-23 4:47 [PATCH 0/2] Update LoongArch relocations for psABI v2.30 Xi Ruoyao
2024-02-23 4:47 ` [PATCH 1/2] libelf: Sync elf.h from glibc Xi Ruoyao
2023-08-29 13:14 [PATCH 1/2] libelf: Sync elf.h from Glibc Xi Ruoyao
2023-08-29 13:23 ` Mark Wielaard
2023-04-01 6:43 [PATCH 1/2] libelf: Sync elf.h from glibc Youling Tang
2023-04-06 22:23 ` Mark Wielaard
2020-12-12 22:38 Mark Wielaard
2020-12-16 10:44 ` Dmitry V. Levin
2020-12-16 18:52 ` Mark Wielaard
2020-08-28 22:42 Mark Wielaard
2020-09-07 7:29 ` Mark Wielaard
2019-04-01 2:33 [PATCH 0/2] Add C-SKY support Mao Han
2019-04-01 2:33 ` [PATCH 1/2] libelf: Sync elf.h from glibc Mao Han
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20240531123939.481611-2-mark@klomp.org \
--to=mark@klomp.org \
--cc=elfutils-devel@sourceware.org \
--cc=luca.boccassi@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).