All of lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH 1/2] package/xvisor: fix build on x86 with PIC/PIE
@ 2019-10-29 12:42 Fabrice Fontaine
  2019-10-29 12:42 ` [Buildroot] [PATCH 2/2] package/xvisor: bump to version 0.2.11 Fabrice Fontaine
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Fabrice Fontaine @ 2019-10-29 12:42 UTC (permalink / raw)
  To: buildroot

Fixes:
 - http://autobuild.buildroot.net/results/21d82ca5ca62d25be214a482017f4a671f7cc3d7

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...6-Fix-build-break-with-newer-GCC-7-x.patch | 34 +++++++++++++++++++
 1 file changed, 34 insertions(+)
 create mode 100644 package/xvisor/0001-x86-Fix-build-break-with-newer-GCC-7-x.patch

diff --git a/package/xvisor/0001-x86-Fix-build-break-with-newer-GCC-7-x.patch b/package/xvisor/0001-x86-Fix-build-break-with-newer-GCC-7-x.patch
new file mode 100644
index 0000000000..668f9df71b
--- /dev/null
+++ b/package/xvisor/0001-x86-Fix-build-break-with-newer-GCC-7-x.patch
@@ -0,0 +1,34 @@
+From 48b056d958e0d9ae5758b9c927b48a2e1d98cbcd Mon Sep 17 00:00:00 2001
+From: Himanshu Chauhan <hchauhan@xvisor-x86.org>
+Date: Mon, 4 Dec 2017 18:29:09 +0530
+Subject: [PATCH] [x86] Fix build break with newer GCC (7.x)
+
+add -no-pie to C and LD flags. GCC 7.x for some reason
+doesn't like to mix 32-bit and 64-bit code and wants
+such code to be compiled with fPIC. Disable PIE from
+does the trick.
+
+Signed-off-by: Himanshu Chauhan <hchauhan@xvisor-x86.org>
+[Retrieved from:
+https://github.com/xvisor/xvisor/commit/48b056d958e0d9ae5758b9c927b48a2e1d98cbcd]
+Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
+---
+ arch/x86/cpu/x86_64/objects.mk | 5 +++--
+ 1 file changed, 3 insertions(+), 2 deletions(-)
+
+diff --git a/arch/x86/cpu/x86_64/objects.mk b/arch/x86/cpu/x86_64/objects.mk
+index a3bed4641..1d6d5a2fb 100644
+--- a/arch/x86/cpu/x86_64/objects.mk
++++ b/arch/x86/cpu/x86_64/objects.mk
+@@ -21,8 +21,9 @@
+ # @author Himanshu Chauhan (hschauhan at nulltrace.org)
+ # @brief list of x86_64 object files.
+ # */
+-cpu-cflags +=-finline-functions -O0 -mcmodel=large
+-cpu-cppflags +=-DCPU_TEXT_LMA=${CONFIG_VAPOOL_ALIGN_MB}
++cpu-cflags +=-finline-functions -O0 -mcmodel=large -no-pie
++cpu-cppflags +=-DCPU_TEXT_LMA=${CONFIG_VAPOOL_ALIGN_MB} -no-pie
++cpu-ldflags += -no-pie
+ 
+ cpu-objs-y+= start.o
+ 
-- 
2.23.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 2/2] package/xvisor: bump to version 0.2.11
  2019-10-29 12:42 [Buildroot] [PATCH 1/2] package/xvisor: fix build on x86 with PIC/PIE Fabrice Fontaine
@ 2019-10-29 12:42 ` Fabrice Fontaine
  2019-10-29 21:39   ` Arnout Vandecappelle
  2019-10-29 21:40 ` [Buildroot] [PATCH 1/2] package/xvisor: fix build on x86 with PIC/PIE Arnout Vandecappelle
  2019-10-31 21:41 ` Peter Korsgaard
  2 siblings, 1 reply; 5+ messages in thread
From: Fabrice Fontaine @ 2019-10-29 12:42 UTC (permalink / raw)
  To: buildroot

- Remove patch (already in version)
- Add hash for license file

Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
---
 ...6-Fix-build-break-with-newer-GCC-7-x.patch | 34 -------------------
 package/xvisor/xvisor.hash                    |  3 +-
 package/xvisor/xvisor.mk                      |  3 +-
 3 files changed, 4 insertions(+), 36 deletions(-)
 delete mode 100644 package/xvisor/0001-x86-Fix-build-break-with-newer-GCC-7-x.patch

diff --git a/package/xvisor/0001-x86-Fix-build-break-with-newer-GCC-7-x.patch b/package/xvisor/0001-x86-Fix-build-break-with-newer-GCC-7-x.patch
deleted file mode 100644
index 668f9df71b..0000000000
--- a/package/xvisor/0001-x86-Fix-build-break-with-newer-GCC-7-x.patch
+++ /dev/null
@@ -1,34 +0,0 @@
-From 48b056d958e0d9ae5758b9c927b48a2e1d98cbcd Mon Sep 17 00:00:00 2001
-From: Himanshu Chauhan <hchauhan@xvisor-x86.org>
-Date: Mon, 4 Dec 2017 18:29:09 +0530
-Subject: [PATCH] [x86] Fix build break with newer GCC (7.x)
-
-add -no-pie to C and LD flags. GCC 7.x for some reason
-doesn't like to mix 32-bit and 64-bit code and wants
-such code to be compiled with fPIC. Disable PIE from
-does the trick.
-
-Signed-off-by: Himanshu Chauhan <hchauhan@xvisor-x86.org>
-[Retrieved from:
-https://github.com/xvisor/xvisor/commit/48b056d958e0d9ae5758b9c927b48a2e1d98cbcd]
-Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>
----
- arch/x86/cpu/x86_64/objects.mk | 5 +++--
- 1 file changed, 3 insertions(+), 2 deletions(-)
-
-diff --git a/arch/x86/cpu/x86_64/objects.mk b/arch/x86/cpu/x86_64/objects.mk
-index a3bed4641..1d6d5a2fb 100644
---- a/arch/x86/cpu/x86_64/objects.mk
-+++ b/arch/x86/cpu/x86_64/objects.mk
-@@ -21,8 +21,9 @@
- # @author Himanshu Chauhan (hschauhan at nulltrace.org)
- # @brief list of x86_64 object files.
- # */
--cpu-cflags +=-finline-functions -O0 -mcmodel=large
--cpu-cppflags +=-DCPU_TEXT_LMA=${CONFIG_VAPOOL_ALIGN_MB}
-+cpu-cflags +=-finline-functions -O0 -mcmodel=large -no-pie
-+cpu-cppflags +=-DCPU_TEXT_LMA=${CONFIG_VAPOOL_ALIGN_MB} -no-pie
-+cpu-ldflags += -no-pie
- 
- cpu-objs-y+= start.o
- 
diff --git a/package/xvisor/xvisor.hash b/package/xvisor/xvisor.hash
index c170fdb9f8..dee1ef1d08 100644
--- a/package/xvisor/xvisor.hash
+++ b/package/xvisor/xvisor.hash
@@ -1,2 +1,3 @@
 # Locally generated
-sha256 29b3b830380dde4f596611abd34487fb753e120ce462dbb0056f3025b88ef14f  xvisor-0.2.9.tar.gz
+sha256 a0c9537bd7fb06084c3da663f71bf6f2b1709e34b3b2fca2473c8db1cdd3de1d  xvisor-0.2.11.tar.xz
+sha256 8177f97513213526df2cf6184d8ff986c675afb514d4e68a404010521b880643  COPYING
diff --git a/package/xvisor/xvisor.mk b/package/xvisor/xvisor.mk
index f75175a45c..6094370cc7 100644
--- a/package/xvisor/xvisor.mk
+++ b/package/xvisor/xvisor.mk
@@ -4,7 +4,8 @@
 #
 ################################################################################
 
-XVISOR_VERSION = 0.2.9
+XVISOR_VERSION = 0.2.11
+XVISOR_SOURCE = xvisor-$(XVISOR_VERSION).tar.xz
 XVISOR_SITE = http://www.xhypervisor.org/tarball
 XVISOR_LICENSE = GPL-2.0+
 XVISOR_LICENSE_FILES = COPYING
-- 
2.23.0

^ permalink raw reply related	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 2/2] package/xvisor: bump to version 0.2.11
  2019-10-29 12:42 ` [Buildroot] [PATCH 2/2] package/xvisor: bump to version 0.2.11 Fabrice Fontaine
@ 2019-10-29 21:39   ` Arnout Vandecappelle
  0 siblings, 0 replies; 5+ messages in thread
From: Arnout Vandecappelle @ 2019-10-29 21:39 UTC (permalink / raw)
  To: buildroot



On 29/10/2019 13:42, Fabrice Fontaine wrote:
> - Remove patch (already in version)
> - Add hash for license file
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

 Applied to master, thanks.

 Note that I didn't apply the first patch, I just bumped the version.

 Regards,
 Arnout

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 1/2] package/xvisor: fix build on x86 with PIC/PIE
  2019-10-29 12:42 [Buildroot] [PATCH 1/2] package/xvisor: fix build on x86 with PIC/PIE Fabrice Fontaine
  2019-10-29 12:42 ` [Buildroot] [PATCH 2/2] package/xvisor: bump to version 0.2.11 Fabrice Fontaine
@ 2019-10-29 21:40 ` Arnout Vandecappelle
  2019-10-31 21:41 ` Peter Korsgaard
  2 siblings, 0 replies; 5+ messages in thread
From: Arnout Vandecappelle @ 2019-10-29 21:40 UTC (permalink / raw)
  To: buildroot



On 29/10/2019 13:42, Fabrice Fontaine wrote:
> Fixes:
>  - http://autobuild.buildroot.net/results/21d82ca5ca62d25be214a482017f4a671f7cc3d7
> 
> Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

 Peter, this one is for the stable branches. I applied the version bump to
master and that's sufficient for master.

 Regards,
 Arnout

^ permalink raw reply	[flat|nested] 5+ messages in thread

* [Buildroot] [PATCH 1/2] package/xvisor: fix build on x86 with PIC/PIE
  2019-10-29 12:42 [Buildroot] [PATCH 1/2] package/xvisor: fix build on x86 with PIC/PIE Fabrice Fontaine
  2019-10-29 12:42 ` [Buildroot] [PATCH 2/2] package/xvisor: bump to version 0.2.11 Fabrice Fontaine
  2019-10-29 21:40 ` [Buildroot] [PATCH 1/2] package/xvisor: fix build on x86 with PIC/PIE Arnout Vandecappelle
@ 2019-10-31 21:41 ` Peter Korsgaard
  2 siblings, 0 replies; 5+ messages in thread
From: Peter Korsgaard @ 2019-10-31 21:41 UTC (permalink / raw)
  To: buildroot

>>>>> "Fabrice" == Fabrice Fontaine <fontaine.fabrice@gmail.com> writes:

 > Fixes:
 >  - http://autobuild.buildroot.net/results/21d82ca5ca62d25be214a482017f4a671f7cc3d7

 > Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com>

Committed to 2019.02.x and 2019.08.x, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2019-10-31 21:41 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-10-29 12:42 [Buildroot] [PATCH 1/2] package/xvisor: fix build on x86 with PIC/PIE Fabrice Fontaine
2019-10-29 12:42 ` [Buildroot] [PATCH 2/2] package/xvisor: bump to version 0.2.11 Fabrice Fontaine
2019-10-29 21:39   ` Arnout Vandecappelle
2019-10-29 21:40 ` [Buildroot] [PATCH 1/2] package/xvisor: fix build on x86 with PIC/PIE Arnout Vandecappelle
2019-10-31 21:41 ` 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.