Skip to content

Commit

Permalink
devkitA64: add relr defines
Browse files Browse the repository at this point in the history
  • Loading branch information
WinterMute committed Aug 30, 2024
1 parent 5599e42 commit 8b3fb07
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions dka64/patches/newlib-4.4.0.20231231.patch
Original file line number Diff line number Diff line change
Expand Up @@ -10701,6 +10701,35 @@ index 5c293c83d..0dbfcd7ee 100644
/* Under Cygwin, wchar_t (or its extension wint_t) is Unicode */
#define _jp2uc(c) (c)
#define _jp2uc_l(c, l) (c)
diff --git a/newlib/libc/include/elf.h b/newlib/libc/include/elf.h
index 79d3b974b..673f3391a 100644
--- a/newlib/libc/include/elf.h
+++ b/newlib/libc/include/elf.h
@@ -580,6 +580,11 @@ typedef struct {



+typedef Elf32_Word Elf32_Relr;
+typedef Elf64_Xword Elf64_Relr;
+
+
+
#define ELF32_R_SYM(val) ((val) >> 8)
#define ELF32_R_TYPE(val) ((val) & 0xff)
#define ELF32_R_INFO(sym, type) (((sym) << 8) + ((type) & 0xff))
@@ -747,7 +752,11 @@ typedef struct {
#define DT_ENCODING 32
#define DT_PREINIT_ARRAY 32
#define DT_PREINIT_ARRAYSZ 33
-#define DT_NUM 34
+#define DT_SYMTAB_SHNDX 34
+#define DT_RELRSZ 35
+#define DT_RELR 36
+#define DT_RELRENT 37
+#define DT_NUM 38
#define DT_LOOS 0x6000000d
#define DT_HIOS 0x6ffff000
#define DT_LOPROC 0x70000000
diff --git a/newlib/libc/include/fnmatch.h b/newlib/libc/include/fnmatch.h
index a94e923a4..9171e98aa 100644
--- a/newlib/libc/include/fnmatch.h
Expand Down

0 comments on commit 8b3fb07

Please sign in to comment.