From patchwork Tue Oct 29 12:42:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabrice Fontaine X-Patchwork-Id: 1186096 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ODqTebyZ"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 472WSc4N0Xz9sPc for ; Tue, 29 Oct 2019 23:42:23 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id 9E5A7855E1; Tue, 29 Oct 2019 12:42:18 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 3tfZKCB8T8pn; Tue, 29 Oct 2019 12:42:16 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 3FCDE85317; Tue, 29 Oct 2019 12:42:16 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from fraxinus.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by ash.osuosl.org (Postfix) with ESMTP id 5B3061BF312 for ; Tue, 29 Oct 2019 12:42:15 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by fraxinus.osuosl.org (Postfix) with ESMTP id 53D0B85485 for ; Tue, 29 Oct 2019 12:42:15 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from fraxinus.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id M9MJsY01u_sC for ; Tue, 29 Oct 2019 12:42:14 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm1-f66.google.com (mail-wm1-f66.google.com [209.85.128.66]) by fraxinus.osuosl.org (Postfix) with ESMTPS id 6EE8885466 for ; Tue, 29 Oct 2019 12:42:14 +0000 (UTC) Received: by mail-wm1-f66.google.com with SMTP id g24so2404110wmh.5 for ; Tue, 29 Oct 2019 05:42:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=N3Yl3WiPUarE1HhrnlzR5Q+FCLYPQIfqfdwWVkttOkA=; b=ODqTebyZqJNUiBUoKTAv+XbsF3hA5hgwaPaLAU2M/+JCIbNI6G32hhAT5SAhrYs/h9 GkUzZsUs7TJnVOXvc4FgXWdDyiH65OslT6IRNj3XiaG6g3uSCo1NU+AQW40Sd+SP77UC dIqHSsU2wJnxxpJIJmtPRqjePoVmosJp4es8Ec0zBfseAT9SHJs5UGBznWvAX8iDq6dR BkTXd03yPQ6wQZ28qfOsOvHd9CoxHl61vYwRxE38H6kQmWc81fS9Q1aM0pYF52fJi9Bv sQB8DdVzHsmPQ0ONRA6guTVOVRN0s+53XVqOzqb+lJ9zOisjHN8KR4DtAHPABCMJ5LKD 7Vnw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=N3Yl3WiPUarE1HhrnlzR5Q+FCLYPQIfqfdwWVkttOkA=; b=SPAxzWVthwxJmo4U01y1hctZPAAe8nt5Lp0IMlYsD569U4kVhA2kNrRu7dNJKcqfbZ wCUiuCZrOc+/Z/X0BkaTCuWMnr9YBu+EcjxQN752Ai6F6WO06Gnq+C4zT+bZ9mSpO4MW M9xrm1ZlSCJ0kNZA1J9I/4umfrX9tjvHCLlj13MYW8039IDmjzEEMqoaE/W6PfPwRRYu v/zDOHO3Fv7dBf6/kiXt7wNquFNqs8ZWlx0IAgzo8NJhBGe1Oghmuxv4j+JtjbzBccm2 ofzTbwzbz2G1aqfz0UrRgEJ0oHN6nfoX8S3jg/w8l9NCNw6P5p8jCPM3MA/xbfSZuOMz uhqw== X-Gm-Message-State: APjAAAV0jpZPyXTh/uqK/3uf6ttoXNhCrrFSD7NlfqzkQ8VBbeY48mSC tgiDUdlZ34lqot9kGvursbEtz4yP X-Google-Smtp-Source: APXvYqz9Ona1PkLQVMfh0qt0GDOBAS1g9zc0oMJ2HiZEWVOkVj0h+wvC72nrvCj34p4LojS5OQQ4Tg== X-Received: by 2002:a1c:7405:: with SMTP id p5mr3820986wmc.91.1572352932481; Tue, 29 Oct 2019 05:42:12 -0700 (PDT) Received: from kali.home (lfbn-1-3732-187.w86-229.abo.wanadoo.fr. [86.229.230.187]) by smtp.gmail.com with ESMTPSA id l8sm14621153wru.22.2019.10.29.05.42.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 29 Oct 2019 05:42:11 -0700 (PDT) From: Fabrice Fontaine To: buildroot@buildroot.org Date: Tue, 29 Oct 2019 13:42:40 +0100 Message-Id: <20191029124241.5734-1-fontaine.fabrice@gmail.com> X-Mailer: git-send-email 2.23.0 MIME-Version: 1.0 Subject: [Buildroot] [PATCH 1/2] package/xvisor: fix build on x86 with PIC/PIE X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Eric Le Bihan , Fabrice Fontaine Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" Fixes: - http://autobuild.buildroot.net/results/21d82ca5ca62d25be214a482017f4a671f7cc3d7 Signed-off-by: Fabrice Fontaine --- ...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 +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 +[Retrieved from: +https://github.com/xvisor/xvisor/commit/48b056d958e0d9ae5758b9c927b48a2e1d98cbcd] +Signed-off-by: Fabrice Fontaine +--- + 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@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 +