mailing list of musl libc
 help / color / mirror / code / Atom feed
* [musl] [PATCH] elf.h: add typedefs for Elf*_Relr
@ 2023-11-06 11:33 Natanael Copa
  0 siblings, 0 replies; only message in thread
From: Natanael Copa @ 2023-11-06 11:33 UTC (permalink / raw)
  To: musl; +Cc: Natanael Copa

Add typedefs for Elf32_Relr and Elf64_Relr as a follow-up to commit
d32dadd60efb (ldso: support DT_RELR relative relocation format)

---
This fixes build of iproute2 with elfutils 0.190, which assumes that
Elf*_Relr are typedef'ed when SHT_RELR is defined.

ref: https://sourceware.org/git/?p=elfutils.git;a=commit;h=39f2c500542f69c2f1a13fd0ae4eaa5778d2ed8d
ref: https://sourceware.org/bugzilla/show_bug.cgi?id=31034

 include/elf.h | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/elf.h b/include/elf.h
index 23f2c4bc..aa186d9d 100644
--- a/include/elf.h
+++ b/include/elf.h
@@ -32,6 +32,9 @@ typedef uint16_t Elf64_Section;
 typedef Elf32_Half Elf32_Versym;
 typedef Elf64_Half Elf64_Versym;
 
+typedef Elf32_Word Elf32_Relr;
+typedef Elf64_Xword Elf64_Relr;
+
 #define EI_NIDENT (16)
 
 typedef struct {
-- 
2.42.1


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-11-06 11:46 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-06 11:33 [musl] [PATCH] elf.h: add typedefs for Elf*_Relr Natanael Copa

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/musl/

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 NNTP newsgroup(s).