diff options
Diffstat (limited to 'meta/recipes-core/musl')
15 files changed, 125 insertions, 80 deletions
diff --git a/meta/recipes-core/musl/bsd-headers.bb b/meta/recipes-core/musl/bsd-headers.bb index 887a816031..ad9ba81e4f 100644 --- a/meta/recipes-core/musl/bsd-headers.bb +++ b/meta/recipes-core/musl/bsd-headers.bb | |||
@@ -15,7 +15,7 @@ do_compile[noexec] = "1" | |||
15 | 15 | ||
16 | INHIBIT_DEFAULT_DEPS = "1" | 16 | INHIBIT_DEFAULT_DEPS = "1" |
17 | 17 | ||
18 | S = "${WORKDIR}" | 18 | S = "${UNPACKDIR}" |
19 | 19 | ||
20 | do_install() { | 20 | do_install() { |
21 | install -Dm 0644 ${S}/sys-queue.h ${D}${includedir}/sys/queue.h | 21 | install -Dm 0644 ${S}/sys-queue.h ${D}${includedir}/sys/queue.h |
diff --git a/meta/recipes-core/musl/gcompat_git.bb b/meta/recipes-core/musl/gcompat_git.bb index 40fe8c6a5f..6f9710e71a 100644 --- a/meta/recipes-core/musl/gcompat_git.bb +++ b/meta/recipes-core/musl/gcompat_git.bb | |||
@@ -16,8 +16,6 @@ SRC_URI:append:powerpc = "\ | |||
16 | PV = "1.1.0" | 16 | PV = "1.1.0" |
17 | SRCREV = "b7bfe0b08c52fdc72e0c1d9d4dcb2129f1642bd6" | 17 | SRCREV = "b7bfe0b08c52fdc72e0c1d9d4dcb2129f1642bd6" |
18 | 18 | ||
19 | S = "${WORKDIR}/git" | ||
20 | |||
21 | inherit pkgconfig linuxloader siteinfo | 19 | inherit pkgconfig linuxloader siteinfo |
22 | 20 | ||
23 | DEPENDS += "musl-obstack" | 21 | DEPENDS += "musl-obstack" |
diff --git a/meta/recipes-core/musl/libc-test_git.bb b/meta/recipes-core/musl/libc-test_git.bb index 619a959fd2..71a111cfa4 100644 --- a/meta/recipes-core/musl/libc-test_git.bb +++ b/meta/recipes-core/musl/libc-test_git.bb | |||
@@ -18,8 +18,6 @@ SRC_URI = " \ | |||
18 | 18 | ||
19 | PV = "0+git" | 19 | PV = "0+git" |
20 | 20 | ||
21 | S = "${WORKDIR}/git" | ||
22 | |||
23 | # libc-test 'make' or 'make run' command is designed to build and run tests. It | 21 | # libc-test 'make' or 'make run' command is designed to build and run tests. It |
24 | # reports both build and test failures. The commands should be run on target. | 22 | # reports both build and test failures. The commands should be run on target. |
25 | do_compile() { | 23 | do_compile() { |
@@ -50,7 +48,7 @@ do_install () { | |||
50 | } | 48 | } |
51 | 49 | ||
52 | do_install_ptest_base:append() { | 50 | do_install_ptest_base:append() { |
53 | install -Dm 0755 ${WORKDIR}/run-libc-ptests ${D}${PTEST_PATH}/run-libc-ptests | 51 | install -Dm 0755 ${UNPACKDIR}/run-libc-ptests ${D}${PTEST_PATH}/run-libc-ptests |
54 | } | 52 | } |
55 | 53 | ||
56 | COMPATIBLE_HOST = "null" | 54 | COMPATIBLE_HOST = "null" |
diff --git a/meta/recipes-core/musl/libssp-nonshared.bb b/meta/recipes-core/musl/libssp-nonshared.bb index 3faf8f00c3..4bcbaef7ea 100644 --- a/meta/recipes-core/musl/libssp-nonshared.bb +++ b/meta/recipes-core/musl/libssp-nonshared.bb | |||
@@ -11,13 +11,13 @@ SRC_URI = "file://stack_chk.c" | |||
11 | 11 | ||
12 | INHIBIT_DEFAULT_DEPS = "1" | 12 | INHIBIT_DEFAULT_DEPS = "1" |
13 | 13 | ||
14 | DEPENDS = "virtual/${TARGET_PREFIX}binutils \ | 14 | DEPENDS = "virtual/cross-binutils \ |
15 | virtual/${TARGET_PREFIX}gcc \ | 15 | virtual/cross-cc \ |
16 | " | 16 | " |
17 | 17 | ||
18 | do_configure[noexec] = "1" | 18 | do_configure[noexec] = "1" |
19 | 19 | ||
20 | S = "${WORKDIR}" | 20 | S = "${UNPACKDIR}" |
21 | 21 | ||
22 | do_compile() { | 22 | do_compile() { |
23 | ${CC} ${CPPFLAGS} ${CFLAGS} -fPIE -c stack_chk.c -o stack_chk.o | 23 | ${CC} ${CPPFLAGS} ${CFLAGS} -fPIE -c stack_chk.c -o stack_chk.o |
diff --git a/meta/recipes-core/musl/libucontext_1.2.bb b/meta/recipes-core/musl/libucontext_1.3.2.bb index 4e34df1439..c5b802207b 100644 --- a/meta/recipes-core/musl/libucontext_1.2.bb +++ b/meta/recipes-core/musl/libucontext_1.3.2.bb | |||
@@ -8,12 +8,10 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=ebea527af0602d509b7f4c49533fb1bd" | |||
8 | SECTION = "libs" | 8 | SECTION = "libs" |
9 | DEPENDS = "" | 9 | DEPENDS = "" |
10 | 10 | ||
11 | SRCREV = "4dde3417b4bb4b1b1545bd913be337680b5e28c3" | 11 | SRCREV = "a0323579ac50b9a9d4033754d089f1fed0f59a00" |
12 | SRC_URI = "git://github.com/kaniini/libucontext;branch=master;protocol=https \ | 12 | SRC_URI = "git://github.com/kaniini/libucontext;branch=master;protocol=https \ |
13 | " | 13 | " |
14 | 14 | ||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | COMPATIBLE_HOST = ".*-musl.*" | 15 | COMPATIBLE_HOST = ".*-musl.*" |
18 | 16 | ||
19 | valid_archs = " \ | 17 | valid_archs = " \ |
@@ -50,3 +48,9 @@ def map_kernel_arch(a, d): | |||
50 | 48 | ||
51 | EXTRA_OEMESON = "-Dcpu=${@map_kernel_arch(d.getVar('TARGET_ARCH'), d)}" | 49 | EXTRA_OEMESON = "-Dcpu=${@map_kernel_arch(d.getVar('TARGET_ARCH'), d)}" |
52 | inherit meson | 50 | inherit meson |
51 | |||
52 | ARM_TARGET_CPPFLAGS = "" | ||
53 | ARM_TARGET_CPPFLAGS:append:arm = "${@bb.utils.contains('TARGET_FPU', 'hard', ' -DFORCE_HARD_FLOAT', '', d)}" | ||
54 | ARM_TARGET_CPPFLAGS:append:arm = "${@bb.utils.contains('TARGET_FPU', 'soft', ' -DFORCE_SOFT_FLOAT', '', d)}" | ||
55 | |||
56 | TARGET_CPPFLAGS .= "${ARM_TARGET_CPPFLAGS}" | ||
diff --git a/meta/recipes-core/musl/musl-legacy-error.bb b/meta/recipes-core/musl/musl-legacy-error.bb index 5ce5a233ab..b40075c0b6 100644 --- a/meta/recipes-core/musl/musl-legacy-error.bb +++ b/meta/recipes-core/musl/musl-legacy-error.bb | |||
@@ -13,7 +13,7 @@ do_compile[noexec] = "1" | |||
13 | 13 | ||
14 | INHIBIT_DEFAULT_DEPS = "1" | 14 | INHIBIT_DEFAULT_DEPS = "1" |
15 | 15 | ||
16 | S = "${WORKDIR}" | 16 | S = "${UNPACKDIR}" |
17 | 17 | ||
18 | do_install() { | 18 | do_install() { |
19 | install -Dm 0644 ${S}/error.h -t ${D}${includedir} | 19 | install -Dm 0644 ${S}/error.h -t ${D}${includedir} |
diff --git a/meta/recipes-core/musl/musl-locales_git.bb b/meta/recipes-core/musl/musl-locales_git.bb index 1373c60daf..c8510596cf 100644 --- a/meta/recipes-core/musl/musl-locales_git.bb +++ b/meta/recipes-core/musl/musl-locales_git.bb | |||
@@ -12,8 +12,6 @@ SRC_URI = "git://git.adelielinux.org/adelie/musl-locales;protocol=https;branch=m | |||
12 | PV = "1.0+git" | 12 | PV = "1.0+git" |
13 | SRCREV = "5663f5bfd30bf9e1e0ba3fc5fe2da6725969f30e" | 13 | SRCREV = "5663f5bfd30bf9e1e0ba3fc5fe2da6725969f30e" |
14 | 14 | ||
15 | S = "${WORKDIR}/git" | ||
16 | |||
17 | DEPENDS = "virtual/libintl gettext-native" | 15 | DEPENDS = "virtual/libintl gettext-native" |
18 | 16 | ||
19 | PROVIDES = "virtual/libc-locale" | 17 | PROVIDES = "virtual/libc-locale" |
@@ -82,4 +80,21 @@ FILES:locale-base-ru-ru += "${datadir}/i18n/locales/musl/ru_RU.UTF-8" | |||
82 | FILES:locale-base-sr-rs += "${datadir}/i18n/locales/musl/sr_RS.UTF-8" | 80 | FILES:locale-base-sr-rs += "${datadir}/i18n/locales/musl/sr_RS.UTF-8" |
83 | FILES:locale-base-sv-se += "${datadir}/i18n/locales/musl/sv_SE.UTF-8" | 81 | FILES:locale-base-sv-se += "${datadir}/i18n/locales/musl/sv_SE.UTF-8" |
84 | 82 | ||
83 | RRECOMMENDS:locale-base-cs-cz += "${PN}" | ||
84 | RRECOMMENDS:locale-base-de-ch += "${PN}" | ||
85 | RRECOMMENDS:locale-base-de-de += "${PN}" | ||
86 | RRECOMMENDS:locale-base-en-gb += "${PN}" | ||
87 | RRECOMMENDS:locale-base-en-us += "${PN}" | ||
88 | RRECOMMENDS:locale-base-es-es += "${PN}" | ||
89 | RRECOMMENDS:locale-base-fi-fi += "${PN}" | ||
90 | RRECOMMENDS:locale-base-fr-ca += "${PN}" | ||
91 | RRECOMMENDS:locale-base-fr-fr += "${PN}" | ||
92 | RRECOMMENDS:locale-base-it-it += "${PN}" | ||
93 | RRECOMMENDS:locale-base-nb-no += "${PN}" | ||
94 | RRECOMMENDS:locale-base-nl-nl += "${PN}" | ||
95 | RRECOMMENDS:locale-base-pt-br += "${PN}" | ||
96 | RRECOMMENDS:locale-base-ru-ru += "${PN}" | ||
97 | RRECOMMENDS:locale-base-sr-sr += "${PN}" | ||
98 | RRECOMMENDS:locale-base-sv-se += "${PN}" | ||
99 | |||
85 | UPSTREAM_CHECK_COMMITS = "1" | 100 | UPSTREAM_CHECK_COMMITS = "1" |
diff --git a/meta/recipes-core/musl/musl-obstack.bb b/meta/recipes-core/musl/musl-obstack.bb index 4c71a141b2..d8a5ae8d82 100644 --- a/meta/recipes-core/musl/musl-obstack.bb +++ b/meta/recipes-core/musl/musl-obstack.bb | |||
@@ -16,7 +16,5 @@ UPSTREAM_CHECK_COMMITS = "1" | |||
16 | 16 | ||
17 | inherit autotools pkgconfig | 17 | inherit autotools pkgconfig |
18 | 18 | ||
19 | S = "${WORKDIR}/git" | ||
20 | |||
21 | COMPATIBLE_HOST = ".*-musl.*" | 19 | COMPATIBLE_HOST = ".*-musl.*" |
22 | 20 | ||
diff --git a/meta/recipes-core/musl/musl-utils.bb b/meta/recipes-core/musl/musl-utils.bb index 8280333daf..4b685640c8 100644 --- a/meta/recipes-core/musl/musl-utils.bb +++ b/meta/recipes-core/musl/musl-utils.bb | |||
@@ -17,8 +17,6 @@ UPSTREAM_CHECK_COMMITS = "1" | |||
17 | 17 | ||
18 | inherit autotools | 18 | inherit autotools |
19 | 19 | ||
20 | S = "${WORKDIR}/git" | ||
21 | |||
22 | PACKAGES =+ "${PN}-iconv" | 20 | PACKAGES =+ "${PN}-iconv" |
23 | 21 | ||
24 | FILES:${PN}-iconv = "${bindir}/iconv" | 22 | FILES:${PN}-iconv = "${bindir}/iconv" |
diff --git a/meta/recipes-core/musl/musl.inc b/meta/recipes-core/musl/musl.inc index 6ca52b186a..ce45de2d23 100644 --- a/meta/recipes-core/musl/musl.inc +++ b/meta/recipes-core/musl/musl.inc | |||
@@ -9,7 +9,7 @@ standards-conformance and safety." | |||
9 | HOMEPAGE = "http://www.musl-libc.org/" | 9 | HOMEPAGE = "http://www.musl-libc.org/" |
10 | LICENSE = "MIT" | 10 | LICENSE = "MIT" |
11 | SECTION = "libs" | 11 | SECTION = "libs" |
12 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=b03f1cc25363d094011f8f4fd8bcfb68" | 12 | LIC_FILES_CHKSUM = "file://COPYRIGHT;md5=0c2904cdc34777fb4067732bae145506" |
13 | 13 | ||
14 | INHIBIT_DEFAULT_DEPS = "1" | 14 | INHIBIT_DEFAULT_DEPS = "1" |
15 | 15 | ||
@@ -25,10 +25,13 @@ MIPS_INSTRUCTION_SET = "mips" | |||
25 | ARM_INSTRUCTION_SET:armv5 = "arm" | 25 | ARM_INSTRUCTION_SET:armv5 = "arm" |
26 | ARM_INSTRUCTION_SET:armv4 = "arm" | 26 | ARM_INSTRUCTION_SET:armv4 = "arm" |
27 | 27 | ||
28 | # 1.2.4 doesn't support riscv32 | ||
29 | COMPATIBLE_HOST:riscv32 = "null" | ||
30 | |||
31 | # Enable out of tree build | 28 | # Enable out of tree build |
32 | B = "${WORKDIR}/build" | 29 | B = "${WORKDIR}/build" |
33 | 30 | ||
34 | do_configure[cleandirs] = "${B}" | 31 | do_configure[cleandirs] = "${B}" |
32 | |||
33 | python () { | ||
34 | multilibs = d.getVar("MULTILIBS") | ||
35 | if multilibs: | ||
36 | raise bb.parse.SkipRecipe("musl is not compatible with multilibs") | ||
37 | } | ||
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 @@ | |||
1 | From f95b6fd0475a95c00e886219271cb5c93838e3c3 Mon Sep 17 00:00:00 2001 | 1 | From 665ecc610c261d5e98710aa0c6ccf6e4991eaf58 Mon Sep 17 00:00:00 2001 |
2 | From: Amarnath Valluri <amarnath.valluri@intel.com> | 2 | From: Amarnath Valluri <amarnath.valluri@intel.com> |
3 | Date: Wed, 18 Jan 2017 16:14:37 +0200 | 3 | Date: Wed, 18 Jan 2017 16:14:37 +0200 |
4 | Subject: [PATCH 1/2] Make dynamic linker a relative symlink to libc | 4 | Subject: [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 | ||
37 | diff --git a/tools/install.sh b/tools/install.sh | 37 | diff --git a/tools/install.sh b/tools/install.sh |
38 | index d913b60b..b6a7f797 100755 | 38 | index 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 | -- |
74 | 2.37.2 | 74 | 2.43.0 |
75 | 75 | ||
diff --git a/meta/recipes-core/musl/musl/0001-Update-syscalls-for-r32-rv64-from-kernel-6.4-through.patch b/meta/recipes-core/musl/musl/0001-Update-syscalls-for-r32-rv64-from-kernel-6.4-through.patch new file mode 100644 index 0000000000..78ba903ca6 --- /dev/null +++ b/meta/recipes-core/musl/musl/0001-Update-syscalls-for-r32-rv64-from-kernel-6.4-through.patch | |||
@@ -0,0 +1,70 @@ | |||
1 | From 31dce8e958f5185e7fda653214da12bbc75f244e Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Wed, 4 Dec 2024 11:16:43 -0800 | ||
4 | Subject: [PATCH] Update syscalls for r32/rv64 from kernel 6.4 through 6.10 | ||
5 | |||
6 | Upstream-Status: Submitted [https://www.openwall.com/lists/musl/2024/12/04/3] | ||
7 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
8 | --- | ||
9 | arch/riscv32/bits/syscall.h.in | 11 +++++++++++ | ||
10 | arch/riscv64/bits/syscall.h.in | 11 +++++++++++ | ||
11 | 2 files changed, 22 insertions(+) | ||
12 | |||
13 | diff --git a/arch/riscv32/bits/syscall.h.in b/arch/riscv32/bits/syscall.h.in | ||
14 | index 9228d840..a54d9ffc 100644 | ||
15 | --- a/arch/riscv32/bits/syscall.h.in | ||
16 | +++ b/arch/riscv32/bits/syscall.h.in | ||
17 | @@ -216,6 +216,7 @@ | ||
18 | #define __NR_perf_event_open 241 | ||
19 | #define __NR_accept4 242 | ||
20 | #define __NR_arch_specific_syscall 244 | ||
21 | +#define __NR_riscv_hwprobe 258 | ||
22 | #define __NR_prlimit64 261 | ||
23 | #define __NR_fanotify_init 262 | ||
24 | #define __NR_fanotify_mark 263 | ||
25 | @@ -295,6 +296,16 @@ | ||
26 | #define __NR_cachestat 451 | ||
27 | #define __NR_fchmodat2 452 | ||
28 | #define __NR_futex __NR_futex_time64 | ||
29 | +#define __NR_map_shadow_stack 453 | ||
30 | +#define __NR_futex_wake 454 | ||
31 | +#define __NR_futex_wait 455 | ||
32 | +#define __NR_futex_requeue 456 | ||
33 | +#define __NR_statmount 457 | ||
34 | +#define __NR_listmount 458 | ||
35 | +#define __NR_lsm_get_self_attr 459 | ||
36 | +#define __NR_lsm_list_modules 461 | ||
37 | +#define __NR_lsm_set_self_attr 460 | ||
38 | +#define __NR_mseal 462 | ||
39 | |||
40 | #define __NR_sysriscv __NR_arch_specific_syscall | ||
41 | #define __NR_riscv_flush_icache (__NR_sysriscv + 15) | ||
42 | diff --git a/arch/riscv64/bits/syscall.h.in b/arch/riscv64/bits/syscall.h.in | ||
43 | index e362bd0e..6991a89c 100644 | ||
44 | --- a/arch/riscv64/bits/syscall.h.in | ||
45 | +++ b/arch/riscv64/bits/syscall.h.in | ||
46 | @@ -242,6 +242,7 @@ | ||
47 | #define __NR_accept4 242 | ||
48 | #define __NR_recvmmsg 243 | ||
49 | #define __NR_arch_specific_syscall 244 | ||
50 | +#define __NR_riscv_hwprobe 258 | ||
51 | #define __NR_wait4 260 | ||
52 | #define __NR_prlimit64 261 | ||
53 | #define __NR_fanotify_init 262 | ||
54 | @@ -304,6 +305,16 @@ | ||
55 | #define __NR_set_mempolicy_home_node 450 | ||
56 | #define __NR_cachestat 451 | ||
57 | #define __NR_fchmodat2 452 | ||
58 | +#define __NR_map_shadow_stack 453 | ||
59 | +#define __NR_futex_wake 454 | ||
60 | +#define __NR_futex_wait 455 | ||
61 | +#define __NR_futex_requeue 456 | ||
62 | +#define __NR_statmount 457 | ||
63 | +#define __NR_listmount 458 | ||
64 | +#define __NR_lsm_get_self_attr 459 | ||
65 | +#define __NR_lsm_list_modules 461 | ||
66 | +#define __NR_lsm_set_self_attr 460 | ||
67 | +#define __NR_mseal 462 | ||
68 | |||
69 | #define __NR_sysriscv __NR_arch_specific_syscall | ||
70 | #define __NR_riscv_flush_icache (__NR_sysriscv + 15) | ||
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 @@ | |||
1 | From 3cce8716c6c3ae2e0c835caeac3780ec35090b2d Mon Sep 17 00:00:00 2001 | 1 | From e27de983ef70257ca1fd7f5096eea41613612ecf Mon Sep 17 00:00:00 2001 |
2 | From: Serhey Popovych <serhe.popovych@gmail.com> | 2 | From: Serhey Popovych <serhe.popovych@gmail.com> |
3 | Date: Tue, 11 Dec 2018 05:44:20 -0500 | 3 | Date: Tue, 11 Dec 2018 05:44:20 -0500 |
4 | Subject: [PATCH 2/2] ldso: Use syslibdir and libdir as default pathes to | 4 | Subject: [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) |
38 | diff --git a/ldso/dynlink.c b/ldso/dynlink.c | 38 | diff --git a/ldso/dynlink.c b/ldso/dynlink.c |
39 | index cc677952..b0e8815b 100644 | 39 | index 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 | -- |
61 | 2.37.2 | 61 | 2.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 @@ | |||
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 | |||
diff --git a/meta/recipes-core/musl/musl_git.bb b/meta/recipes-core/musl/musl_git.bb index 324269a968..51e429b093 100644 --- a/meta/recipes-core/musl/musl_git.bb +++ b/meta/recipes-core/musl/musl_git.bb | |||
@@ -4,24 +4,22 @@ | |||
4 | require musl.inc | 4 | require musl.inc |
5 | inherit linuxloader | 5 | inherit linuxloader |
6 | 6 | ||
7 | SRCREV = "79bdacff83a6bd5b70ff5ae5eb8b6de82c2f7c30" | 7 | SRCREV = "ae3a8c93a663b553e65f096498937083dad210d2" |
8 | 8 | ||
9 | BASEVER = "1.2.4" | 9 | BASEVER = "1.2.5" |
10 | 10 | ||
11 | PV = "${BASEVER}+git" | 11 | PV = "${BASEVER}+git" |
12 | 12 | ||
13 | SRC_URI = "git://git.etalabs.net/git/musl;branch=master;protocol=https \ | 13 | SRC_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 \ | 16 | file://0001-Update-syscalls-for-r32-rv64-from-kernel-6.4-through.patch \ |
17 | " | 17 | " |
18 | 18 | ||
19 | S = "${WORKDIR}/git" | ||
20 | |||
21 | PROVIDES += "virtual/libc virtual/libiconv virtual/libintl virtual/crypt" | 19 | PROVIDES += "virtual/libc virtual/libiconv virtual/libintl virtual/crypt" |
22 | 20 | ||
23 | DEPENDS = "virtual/${TARGET_PREFIX}binutils \ | 21 | DEPENDS = "virtual/cross-binutils \ |
24 | virtual/${TARGET_PREFIX}gcc \ | 22 | virtual/cross-cc \ |
25 | libgcc-initial \ | 23 | libgcc-initial \ |
26 | linux-libc-headers \ | 24 | linux-libc-headers \ |
27 | bsd-headers \ | 25 | bsd-headers \ |
@@ -30,7 +28,7 @@ DEPENDS = "virtual/${TARGET_PREFIX}binutils \ | |||
30 | GLIBC_LDSO = "${@get_glibc_loader(d)}" | 28 | GLIBC_LDSO = "${@get_glibc_loader(d)}" |
31 | MUSL_LDSO_ARCH = "${@get_musl_loader_arch(d)}" | 29 | MUSL_LDSO_ARCH = "${@get_musl_loader_arch(d)}" |
32 | 30 | ||
33 | export CROSS_COMPILE="${TARGET_PREFIX}" | 31 | export CROSS_COMPILE = "${TARGET_PREFIX}" |
34 | 32 | ||
35 | LDFLAGS += "-Wl,-soname,libc.so" | 33 | LDFLAGS += "-Wl,-soname,libc.so" |
36 | 34 | ||