From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-9.9 required=3.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH, MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE,SPF_PASS,USER_AGENT_GIT autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 38730C432C1 for ; Tue, 24 Sep 2019 20:15:02 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 0E011207FD for ; Tue, 24 Sep 2019 20:15:02 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1569356102; bh=PIr3J2WXwkx+wpU0dlBJzmksVzKJERCXc7/EfKF5olI=; h=From:To:Cc:Subject:Date:List-ID:From; b=OOsjmQFs1PKH2fDfKDV6fmeyEDJmSvnTX5KJfGvsl9mvo8bWQXMzKkMyI1qouotCi 8sBILEo9Y70BBy3dAnsJrPfkH0moI65u6+Khx35r81FSaLlYdQzW5EDeHp7RJ04OsC QowXIXUi9XWzIrmhnHe4a63qS8GPYDuhpeJLChI8= Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2390915AbfIXUPB (ORCPT ); Tue, 24 Sep 2019 16:15:01 -0400 Received: from mail-io1-f67.google.com ([209.85.166.67]:42078 "EHLO mail-io1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731865AbfIXUPB (ORCPT ); Tue, 24 Sep 2019 16:15:01 -0400 Received: by mail-io1-f67.google.com with SMTP id n197so7625763iod.9 for ; Tue, 24 Sep 2019 13:15:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=DI0egddMaTlmXPpI6j4ITK90qBcGxWnZ/Lc990IvF2Y=; b=JTMndQ+nYpdyNF5MJOGWUHZv+QevSaM0HzuyG4IdtM+xtvoSK1XA6X5CBcgkwcsFmA 3GUTDUHSWAunyQPQX5jfxq+rvzj+h6POMg142essaWiGeLpd6xri8wEzS2VNPNctGHcg +xxXg9XTK7XRkzjGWbajAgkQlVoz2vQx7NuKI= 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=DI0egddMaTlmXPpI6j4ITK90qBcGxWnZ/Lc990IvF2Y=; b=hlq2WpWLW46gegif8Og0P3NOXgV2sz4eFoglGdkqaATMa7p9qMyAAFFiKVYBFWgiKB 89KMzmE0IOJbm7k8PILWvHSupc9u2MKhDG9xkugc47rzd0J3P00VOoBh7StMAjL37fDq 3HoOXGCKEwxAnAjPGeQSKXSBc9Oj0lamflHGmBkm6Up89MDNy5lWcb/Pano+3/ew1U/h 7xWNJ095Qnr6n8M5CPfqtJ41Bb/V4RhR/xWo5jb5IgJLi2sTJbuj3T1yr2OjW1v8sC9E Wi7Fqk4RglDuCTq7Ka4lrW+U6KJPLquB8c0gFUlvVGuQ23nnUFHzFzWuDZSRVH5LyJ2U D17g== X-Gm-Message-State: APjAAAVJIGXCatEsZ1p19MeO+f9FeT99NBjf8Yt7gv0tQmzNc6lmhrYE eXIdf2IBc/FbCDoC5O55SyNTFw== X-Google-Smtp-Source: APXvYqxn6tRAr9RxU9eibq7Mfj2KW3OBHKsrpfR/gHKH+DusHXd6HU+er1lZb6yRz3aWg8YmGuURRw== X-Received: by 2002:a02:cd8d:: with SMTP id l13mr744030jap.138.1569356100138; Tue, 24 Sep 2019 13:15:00 -0700 (PDT) Received: from shuah-t480s.internal (c-24-9-64-241.hsd1.co.comcast.net. [24.9.64.241]) by smtp.gmail.com with ESMTPSA id b24sm2007733iob.2.2019.09.24.13.14.58 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 24 Sep 2019 13:14:59 -0700 (PDT) From: Shuah Khan To: pbonzini@redhat.com, rkrcmar@redhat.com, shuah@kernel.org Cc: Shuah Khan , kvm@vger.kernel.org, linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] selftests: kvm: Fix libkvm build error Date: Tue, 24 Sep 2019 14:14:51 -0600 Message-Id: <20190924201451.31977-1-skhan@linuxfoundation.org> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Fix the following build error: libkvm.a(assert.o): relocation R_X86_64_32 against `.rodata.str1.1' can not be used when making a PIE object; recompile with -fPIC Add -fPIC to CFLAGS to fix it. Signed-off-by: Shuah Khan --- tools/testing/selftests/kvm/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/testing/selftests/kvm/Makefile b/tools/testing/selftests/kvm/Makefile index 62c591f87dab..b4a55d300e75 100644 --- a/tools/testing/selftests/kvm/Makefile +++ b/tools/testing/selftests/kvm/Makefile @@ -44,7 +44,7 @@ INSTALL_HDR_PATH = $(top_srcdir)/usr LINUX_HDR_PATH = $(INSTALL_HDR_PATH)/include/ LINUX_TOOL_INCLUDE = $(top_srcdir)/tools/include CFLAGS += -Wall -Wstrict-prototypes -Wuninitialized -O2 -g -std=gnu99 \ - -fno-stack-protector -fno-PIE -I$(LINUX_TOOL_INCLUDE) \ + -fno-stack-protector -fPIC -fno-PIE -I$(LINUX_TOOL_INCLUDE) \ -I$(LINUX_HDR_PATH) -Iinclude -I$(