summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/recipes-core/musl/musl/0001-Make-dynamic-linker-a-relative-symlink-to-libc.patch12
-rw-r--r--meta/recipes-core/musl/musl/0002-ldso-Use-syslibdir-and-libdir-as-default-pathes-to-l.patch10
-rw-r--r--meta/recipes-core/musl/musl/0003-elf.h-add-typedefs-for-Elf64_Relr-and-Elf32_Relr.patch37
-rw-r--r--meta/recipes-core/musl/musl_git.bb7
4 files changed, 14 insertions, 52 deletions
diff --git a/meta/recipes-core/musl/musl/0001-Make-dynamic-linker-a-relative-symlink-to-libc.patch b/meta/recipes-core/musl/musl/0001-Make-dynamic-linker-a-relative-symlink-to-libc.patch
index 8b097f3276..06ab27f0eb 100644
--- a/meta/recipes-core/musl/musl/0001-Make-dynamic-linker-a-relative-symlink-to-libc.patch
+++ b/meta/recipes-core/musl/musl/0001-Make-dynamic-linker-a-relative-symlink-to-libc.patch
@@ -1,4 +1,4 @@
1From f95b6fd0475a95c00e886219271cb5c93838e3c3 Mon Sep 17 00:00:00 2001 1From 665ecc610c261d5e98710aa0c6ccf6e4991eaf58 Mon Sep 17 00:00:00 2001
2From: Amarnath Valluri <amarnath.valluri@intel.com> 2From: Amarnath Valluri <amarnath.valluri@intel.com>
3Date: Wed, 18 Jan 2017 16:14:37 +0200 3Date: Wed, 18 Jan 2017 16:14:37 +0200
4Subject: [PATCH 1/2] Make dynamic linker a relative symlink to libc 4Subject: [PATCH 1/2] Make dynamic linker a relative symlink to libc
@@ -35,7 +35,7 @@ index e8cc4436..466d9afd 100644
35 install-libs: $(ALL_LIBS:lib/%=$(DESTDIR)$(libdir)/%) $(if $(SHARED_LIBS),$(DESTDIR)$(LDSO_PATHNAME),) 35 install-libs: $(ALL_LIBS:lib/%=$(DESTDIR)$(libdir)/%) $(if $(SHARED_LIBS),$(DESTDIR)$(LDSO_PATHNAME),)
36 36
37diff --git a/tools/install.sh b/tools/install.sh 37diff --git a/tools/install.sh b/tools/install.sh
38index d913b60b..b6a7f797 100755 38index 855a8ca2..a2e6a5eb 100755
39--- a/tools/install.sh 39--- a/tools/install.sh
40+++ b/tools/install.sh 40+++ b/tools/install.sh
41@@ -6,18 +6,20 @@ 41@@ -6,18 +6,20 @@
@@ -61,15 +61,15 @@ index d913b60b..b6a7f797 100755
61 m) mode=$OPTARG ;; 61 m) mode=$OPTARG ;;
62 ?) usage ;; 62 ?) usage ;;
63 esac 63 esac
64@@ -48,7 +50,7 @@ trap 'rm -f "$tmp"' EXIT INT QUIT TERM HUP 64@@ -49,7 +51,7 @@ umask 077
65 umask 077
66 65
67 if test "$symlink" ; then 66 if test "$symlink" ; then
67 umask 000
68-ln -s "$1" "$tmp" 68-ln -s "$1" "$tmp"
69+ln $symlinkflags "$1" "$tmp" 69+ln $symlinkflags "$1" "$tmp"
70 umask 077
70 else 71 else
71 cat < "$1" > "$tmp" 72 cat < "$1" > "$tmp"
72 chmod "$mode" "$tmp"
73-- 73--
742.37.2 742.43.0
75 75
diff --git a/meta/recipes-core/musl/musl/0002-ldso-Use-syslibdir-and-libdir-as-default-pathes-to-l.patch b/meta/recipes-core/musl/musl/0002-ldso-Use-syslibdir-and-libdir-as-default-pathes-to-l.patch
index 59bfae5a27..04630b32ee 100644
--- a/meta/recipes-core/musl/musl/0002-ldso-Use-syslibdir-and-libdir-as-default-pathes-to-l.patch
+++ b/meta/recipes-core/musl/musl/0002-ldso-Use-syslibdir-and-libdir-as-default-pathes-to-l.patch
@@ -1,4 +1,4 @@
1From 3cce8716c6c3ae2e0c835caeac3780ec35090b2d Mon Sep 17 00:00:00 2001 1From e27de983ef70257ca1fd7f5096eea41613612ecf Mon Sep 17 00:00:00 2001
2From: Serhey Popovych <serhe.popovych@gmail.com> 2From: Serhey Popovych <serhe.popovych@gmail.com>
3Date: Tue, 11 Dec 2018 05:44:20 -0500 3Date: Tue, 11 Dec 2018 05:44:20 -0500
4Subject: [PATCH 2/2] ldso: Use syslibdir and libdir as default pathes to 4Subject: [PATCH 2/2] ldso: Use syslibdir and libdir as default pathes to
@@ -36,10 +36,10 @@ index 466d9afd..d2f458fa 100644
36 36
37 LDFLAGS_ALL = $(LDFLAGS_AUTO) $(LDFLAGS) 37 LDFLAGS_ALL = $(LDFLAGS_AUTO) $(LDFLAGS)
38diff --git a/ldso/dynlink.c b/ldso/dynlink.c 38diff --git a/ldso/dynlink.c b/ldso/dynlink.c
39index cc677952..b0e8815b 100644 39index 324aa859..7d3ab44c 100644
40--- a/ldso/dynlink.c 40--- a/ldso/dynlink.c
41+++ b/ldso/dynlink.c 41+++ b/ldso/dynlink.c
42@@ -29,6 +29,8 @@ 42@@ -35,6 +35,8 @@ static size_t ldso_page_size;
43 #define realloc __libc_realloc 43 #define realloc __libc_realloc
44 #define free __libc_free 44 #define free __libc_free
45 45
@@ -48,7 +48,7 @@ index cc677952..b0e8815b 100644
48 static void error_impl(const char *, ...); 48 static void error_impl(const char *, ...);
49 static void error_noop(const char *, ...); 49 static void error_noop(const char *, ...);
50 static void (*error)(const char *, ...) = error_noop; 50 static void (*error)(const char *, ...) = error_noop;
51@@ -1097,7 +1099,7 @@ static struct dso *load_library(const char *name, struct dso *needed_by) 51@@ -1159,7 +1161,7 @@ static struct dso *load_library(const char *name, struct dso *needed_by)
52 sys_path = ""; 52 sys_path = "";
53 } 53 }
54 } 54 }
@@ -58,5 +58,5 @@ index cc677952..b0e8815b 100644
58 } 58 }
59 pathname = buf; 59 pathname = buf;
60-- 60--
612.37.2 612.43.0
62 62
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
deleted file mode 100644
index 45d40cd5b4..0000000000
--- a/meta/recipes-core/musl/musl/0003-elf.h-add-typedefs-for-Elf64_Relr-and-Elf32_Relr.patch
+++ /dev/null
@@ -1,37 +0,0 @@
1From 65b0ac0d998bf0f36924a7c27ed9e702b2a5a453 Mon Sep 17 00:00:00 2001
2From: Violet Purcell <vimproved@inventati.org>
3Date: Sat, 4 Nov 2023 12:09:20 -0400
4Subject: [PATCH] elf.h: add typedefs for Elf64_Relr and Elf32_Relr
5
6These were overlooked when DT_RELR was added in commit
7d32dadd60efb9d3b255351a3b532f8e4c3dd0db1, potentially breaking
8software that treats presence of the DT_RELR macro as implying they
9exist.
10
11Upstream-Status: Backport [1.2.5]
12
13Signed-off-by: Zang Ruochen <zangruochen@loongson.cn>
14
15---
16 include/elf.h | 5 +++++
17 1 file changed, 5 insertions(+)
18
19diff --git a/include/elf.h b/include/elf.h
20index 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--
362.25.1
37
diff --git a/meta/recipes-core/musl/musl_git.bb b/meta/recipes-core/musl/musl_git.bb
index 324269a968..63b2038e4b 100644
--- a/meta/recipes-core/musl/musl_git.bb
+++ b/meta/recipes-core/musl/musl_git.bb
@@ -4,16 +4,15 @@
4require musl.inc 4require musl.inc
5inherit linuxloader 5inherit linuxloader
6 6
7SRCREV = "79bdacff83a6bd5b70ff5ae5eb8b6de82c2f7c30" 7SRCREV = "0784374d561435f7c787a555aeab8ede699ed298"
8 8
9BASEVER = "1.2.4" 9BASEVER = "1.2.5"
10 10
11PV = "${BASEVER}+git" 11PV = "${BASEVER}+git"
12 12
13SRC_URI = "git://git.etalabs.net/git/musl;branch=master;protocol=https \ 13SRC_URI = "git://git.musl-libc.org/musl;branch=master \
14 file://0001-Make-dynamic-linker-a-relative-symlink-to-libc.patch \ 14 file://0001-Make-dynamic-linker-a-relative-symlink-to-libc.patch \
15 file://0002-ldso-Use-syslibdir-and-libdir-as-default-pathes-to-l.patch \ 15 file://0002-ldso-Use-syslibdir-and-libdir-as-default-pathes-to-l.patch \
16 file://0003-elf.h-add-typedefs-for-Elf64_Relr-and-Elf32_Relr.patch \
17 " 16 "
18 17
19S = "${WORKDIR}/git" 18S = "${WORKDIR}/git"