diff options
Diffstat (limited to 'meta/recipes-core/musl/musl/0003-elf.h-add-typedefs-for-Elf64_Relr-and-Elf32_Relr.patch')
-rw-r--r-- | meta/recipes-core/musl/musl/0003-elf.h-add-typedefs-for-Elf64_Relr-and-Elf32_Relr.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/meta/recipes-core/musl/musl/0003-elf.h-add-typedefs-for-Elf64_Relr-and-Elf32_Relr.patch b/meta/recipes-core/musl/musl/0003-elf.h-add-typedefs-for-Elf64_Relr-and-Elf32_Relr.patch new file mode 100644 index 0000000000..45d40cd5b4 --- /dev/null +++ b/meta/recipes-core/musl/musl/0003-elf.h-add-typedefs-for-Elf64_Relr-and-Elf32_Relr.patch | |||
@@ -0,0 +1,37 @@ | |||
1 | From 65b0ac0d998bf0f36924a7c27ed9e702b2a5a453 Mon Sep 17 00:00:00 2001 | ||
2 | From: Violet Purcell <vimproved@inventati.org> | ||
3 | Date: Sat, 4 Nov 2023 12:09:20 -0400 | ||
4 | Subject: [PATCH] elf.h: add typedefs for Elf64_Relr and Elf32_Relr | ||
5 | |||
6 | These were overlooked when DT_RELR was added in commit | ||
7 | d32dadd60efb9d3b255351a3b532f8e4c3dd0db1, potentially breaking | ||
8 | software that treats presence of the DT_RELR macro as implying they | ||
9 | exist. | ||
10 | |||
11 | Upstream-Status: Backport [1.2.5] | ||
12 | |||
13 | Signed-off-by: Zang Ruochen <zangruochen@loongson.cn> | ||
14 | |||
15 | --- | ||
16 | include/elf.h | 5 +++++ | ||
17 | 1 file changed, 5 insertions(+) | ||
18 | |||
19 | diff --git a/include/elf.h b/include/elf.h | ||
20 | index 23f2c4bc..72d17c3a 100644 | ||
21 | --- a/include/elf.h | ||
22 | +++ b/include/elf.h | ||
23 | @@ -558,6 +558,11 @@ typedef struct { | ||
24 | |||
25 | |||
26 | |||
27 | +typedef Elf32_Word Elf32_Relr; | ||
28 | +typedef Elf64_Xword Elf64_Relr; | ||
29 | + | ||
30 | + | ||
31 | + | ||
32 | #define ELF32_R_SYM(val) ((val) >> 8) | ||
33 | #define ELF32_R_TYPE(val) ((val) & 0xff) | ||
34 | #define ELF32_R_INFO(sym, type) (((sym) << 8) + ((type) & 0xff)) | ||
35 | -- | ||
36 | 2.25.1 | ||
37 | |||