diff options
Diffstat (limited to 'meta/recipes-core/musl/gcompat/0001-make-Static-PIE-does-not-work-on-musl-ppc.patch')
-rw-r--r-- | meta/recipes-core/musl/gcompat/0001-make-Static-PIE-does-not-work-on-musl-ppc.patch | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-core/musl/gcompat/0001-make-Static-PIE-does-not-work-on-musl-ppc.patch b/meta/recipes-core/musl/gcompat/0001-make-Static-PIE-does-not-work-on-musl-ppc.patch new file mode 100644 index 0000000000..1d731163d0 --- /dev/null +++ b/meta/recipes-core/musl/gcompat/0001-make-Static-PIE-does-not-work-on-musl-ppc.patch | |||
@@ -0,0 +1,30 @@ | |||
1 | From 01180e78fe9568e7fb2673ba61801c42f0f70115 Mon Sep 17 00:00:00 2001 | ||
2 | From: Khem Raj <raj.khem@gmail.com> | ||
3 | Date: Fri, 11 Mar 2022 10:37:51 -0800 | ||
4 | Subject: [PATCH] make: Static PIE does not work on musl/ppc | ||
5 | |||
6 | Fixes linker error e.g. | ||
7 | "read-only segment has dynamic relocations" | ||
8 | |||
9 | Upstream-Status: Inappropriate [OE specific] | ||
10 | Signed-off-by: Khem Raj <raj.khem@gmail.com> | ||
11 | --- | ||
12 | Makefile | 2 +- | ||
13 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
14 | |||
15 | diff --git a/Makefile b/Makefile | ||
16 | index cbb7634..69ee228 100644 | ||
17 | --- a/Makefile | ||
18 | +++ b/Makefile | ||
19 | @@ -76,7 +76,7 @@ ${LIBGCOMPAT_NAME}: ${LIBGCOMPAT_OBJ} | ||
20 | ${LIBGCOMPAT_OBJ}: ${LIBGCOMPAT_INCLUDE} | ||
21 | |||
22 | ${LOADER_NAME}: ${LOADER_OBJ} | ||
23 | - ${CC} ${CFLAGS} ${LDFLAGS} -static-pie -o ${LOADER_NAME} ${LOADER_OBJ} | ||
24 | + ${CC} ${CFLAGS} ${LDFLAGS} -static -o ${LOADER_NAME} ${LOADER_OBJ} | ||
25 | |||
26 | .c.o: | ||
27 | ${CC} ${CPPFLAGS} ${CFLAGS} -c -D_BSD_SOURCE \ | ||
28 | -- | ||
29 | 2.35.1 | ||
30 | |||