* [Buildroot] [PATCH] package/kvm-unit-tests: fix powerpc64 PHDR seg err
@ 2021-08-20 12:40 Matthew Weber via buildroot
2021-08-20 21:26 ` Thomas Petazzoni
2021-09-06 15:10 ` Peter Korsgaard
0 siblings, 2 replies; 3+ messages in thread
From: Matthew Weber via buildroot @ 2021-08-20 12:40 UTC (permalink / raw)
To: buildroot; +Cc: Matthew Weber
Upstream comment: "Let's introduce some fake PHDRs
to the linker script to get this working again."
Fixes:
(next) http://autobuild.buildroot.net/results/ae091dbcb155e63c208ce5adb289807cee83e28d/
(master) http://autobuild.buildroot.net/results/ef0/ef0b044802c54a697d8bffb28eba08cf9ce44f4c/
(2021.02.x) http://autobuild.buildroot.net/results/044/04495aa23ce51c48b9b850890453abded85dc477/
(2021.05.x) http://autobuild.buildroot.net/results/0fa/0fa94f1f930aa16cec3bc96e64bc57b460238a0a/
[Cherry-picked upstream]
5126732d73aa75a0bc84f898042bfe35640624b8
Signed-off-by: Matthew Weber <matthew.weber@collins.com>
---
...issue-with-the-linker-from-Fedora-32.patch | 61 +++++++++++++++++++
1 file changed, 61 insertions(+)
create mode 100644 package/kvm-unit-tests/0004-Fix-powerpc-issue-with-the-linker-from-Fedora-32.patch
diff --git a/package/kvm-unit-tests/0004-Fix-powerpc-issue-with-the-linker-from-Fedora-32.patch b/package/kvm-unit-tests/0004-Fix-powerpc-issue-with-the-linker-from-Fedora-32.patch
new file mode 100644
index 0000000000..1768c668b7
--- /dev/null
+++ b/package/kvm-unit-tests/0004-Fix-powerpc-issue-with-the-linker-from-Fedora-32.patch
@@ -0,0 +1,61 @@
+From 5126732d73aa75a0bc84f898042bfe35640624b8 Mon Sep 17 00:00:00 2001
+From: Thomas Huth <thuth@redhat.com>
+Date: Wed, 13 May 2020 13:14:46 +0200
+Subject: [PATCH] Fix powerpc issue with the linker from Fedora 32
+
+The linker from Fedora 32 complains:
+
+powerpc64-linux-gnu-ld: powerpc/selftest.elf: error: PHDR segment not
+ covered by LOAD segment
+
+Let's introduce some fake PHDRs to the linker script to get this
+working again.
+
+Message-Id: <20200514192626.9950-7-thuth@redhat.com>
+Signed-off-by: Thomas Huth <thuth@redhat.com>
+Signed-off-by: Matthew Weber <matthew.weber@collins.com>
+---
+ powerpc/flat.lds | 19 ++++++++++++++++---
+ 1 file changed, 16 insertions(+), 3 deletions(-)
+
+diff --git a/powerpc/flat.lds b/powerpc/flat.lds
+index 53221e8..5eed368 100644
+--- a/powerpc/flat.lds
++++ b/powerpc/flat.lds
+@@ -1,7 +1,17 @@
+
++PHDRS
++{
++ text PT_LOAD FLAGS(5);
++ data PT_LOAD FLAGS(6);
++}
++
+ SECTIONS
+ {
+- .text : { *(.init) *(.text) *(.text.*) }
++ .text : {
++ *(.init)
++ *(.text)
++ *(.text.*)
++ } :text
+ . = ALIGN(64K);
+ etext = .;
+ .opd : { *(.opd) }
+@@ -19,9 +29,12 @@ SECTIONS
+ .data : {
+ *(.data)
+ *(.data.rel*)
+- }
++ } :data
+ . = ALIGN(16);
+- .rodata : { *(.rodata) *(.rodata.*) }
++ .rodata : {
++ *(.rodata)
++ *(.rodata.*)
++ } :data
+ . = ALIGN(16);
+ .bss : { *(.bss) }
+ . = ALIGN(256);
+--
+2.17.1
+
--
2.17.1
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH] package/kvm-unit-tests: fix powerpc64 PHDR seg err
2021-08-20 12:40 [Buildroot] [PATCH] package/kvm-unit-tests: fix powerpc64 PHDR seg err Matthew Weber via buildroot
@ 2021-08-20 21:26 ` Thomas Petazzoni
2021-09-06 15:10 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Thomas Petazzoni @ 2021-08-20 21:26 UTC (permalink / raw)
To: Matthew Weber via buildroot; +Cc: Matthew Weber, buildroot
On Fri, 20 Aug 2021 07:40:18 -0500
Matthew Weber via buildroot <buildroot@busybox.net> wrote:
> Upstream comment: "Let's introduce some fake PHDRs
> to the linker script to get this working again."
>
> Fixes:
> (next) http://autobuild.buildroot.net/results/ae091dbcb155e63c208ce5adb289807cee83e28d/
> (master) http://autobuild.buildroot.net/results/ef0/ef0b044802c54a697d8bffb28eba08cf9ce44f4c/
> (2021.02.x) http://autobuild.buildroot.net/results/044/04495aa23ce51c48b9b850890453abded85dc477/
> (2021.05.x) http://autobuild.buildroot.net/results/0fa/0fa94f1f930aa16cec3bc96e64bc57b460238a0a/
>
> [Cherry-picked upstream]
> 5126732d73aa75a0bc84f898042bfe35640624b8
>
> Signed-off-by: Matthew Weber <matthew.weber@collins.com>
> ---
> ...issue-with-the-linker-from-Fedora-32.patch | 61 +++++++++++++++++++
> 1 file changed, 61 insertions(+)
> create mode 100644 package/kvm-unit-tests/0004-Fix-powerpc-issue-with-the-linker-from-Fedora-32.patch
Applied to master, thanks.
Thomas
--
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@busybox.net
http://lists.busybox.net/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Buildroot] [PATCH] package/kvm-unit-tests: fix powerpc64 PHDR seg err
2021-08-20 12:40 [Buildroot] [PATCH] package/kvm-unit-tests: fix powerpc64 PHDR seg err Matthew Weber via buildroot
2021-08-20 21:26 ` Thomas Petazzoni
@ 2021-09-06 15:10 ` Peter Korsgaard
1 sibling, 0 replies; 3+ messages in thread
From: Peter Korsgaard @ 2021-09-06 15:10 UTC (permalink / raw)
To: Matthew Weber via buildroot; +Cc: Matthew Weber, buildroot
>>>>> "Matthew" == Matthew Weber via buildroot <buildroot@busybox.net> writes:
> Upstream comment: "Let's introduce some fake PHDRs
> to the linker script to get this working again."
> Fixes:
> (next) http://autobuild.buildroot.net/results/ae091dbcb155e63c208ce5adb289807cee83e28d/
> (master) http://autobuild.buildroot.net/results/ef0/ef0b044802c54a697d8bffb28eba08cf9ce44f4c/
> (2021.02.x) http://autobuild.buildroot.net/results/044/04495aa23ce51c48b9b850890453abded85dc477/
> (2021.05.x) http://autobuild.buildroot.net/results/0fa/0fa94f1f930aa16cec3bc96e64bc57b460238a0a/
> [Cherry-picked upstream]
> 5126732d73aa75a0bc84f898042bfe35640624b8
> Signed-off-by: Matthew Weber <matthew.weber@collins.com>
Committed to 2021.02.x and 2021.05.x, thanks.
--
Bye, Peter Korsgaard
_______________________________________________
buildroot mailing list
buildroot@lists.buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2021-09-06 15:10 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-20 12:40 [Buildroot] [PATCH] package/kvm-unit-tests: fix powerpc64 PHDR seg err Matthew Weber via buildroot
2021-08-20 21:26 ` Thomas Petazzoni
2021-09-06 15:10 ` Peter Korsgaard
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.