From patchwork Fri Jun 15 15:15:37 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Thomas Huth X-Patchwork-Id: 10466727 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 7AD9E60384 for ; Fri, 15 Jun 2018 15:15:42 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 6A42228CAC for ; Fri, 15 Jun 2018 15:15:42 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 5D37728D2D; Fri, 15 Jun 2018 15:15:42 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-7.9 required=2.0 tests=BAYES_00, MAILING_LIST_MULTI, RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0CF1628CAC for ; Fri, 15 Jun 2018 15:15:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S936295AbeFOPPk (ORCPT ); Fri, 15 Jun 2018 11:15:40 -0400 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:36924 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S935695AbeFOPPj (ORCPT ); Fri, 15 Jun 2018 11:15:39 -0400 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 01E834057CDE; Fri, 15 Jun 2018 15:15:39 +0000 (UTC) Received: from thh440s.redhat.com (ovpn-116-79.ams2.redhat.com [10.36.116.79]) by smtp.corp.redhat.com (Postfix) with ESMTP id E9EBA20283A3; Fri, 15 Jun 2018 15:15:37 +0000 (UTC) From: Thomas Huth To: kvm@vger.kernel.org Cc: David Hildenbrand , frankja@linux.ibm.com Subject: [kvm-unit-tests PATCH] s390x: Remove .note.gnu.build-id section from the ELF files Date: Fri, 15 Jun 2018 17:15:37 +0200 Message-Id: <1529075737-5916-1-git-send-email-thuth@redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Fri, 15 Jun 2018 15:15:39 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.6]); Fri, 15 Jun 2018 15:15:39 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'thuth@redhat.com' RCPT:'' Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP While debugging another problem, we noticed that the low memory contains some bytes which should not be there. Looks like the linker puts the ".note.gnu.build-id" section to address 0 if it has not explicitly specified in the linker script. ARM and powerpc unit tests are apparently already using --build-id=none to avoid this problem, so let's simply use this linker flag in the s390x builds, too. Signed-off-by: Thomas Huth Reviewed-by: Janosch Frank Reviewed-by: David Hildenbrand --- s390x/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/s390x/Makefile b/s390x/Makefile index d4275a1..6546a02 100644 --- a/s390x/Makefile +++ b/s390x/Makefile @@ -21,7 +21,7 @@ CFLAGS += -I $(SRCDIR)/lib -I $(SRCDIR)/lib/s390x -I lib CFLAGS += -O2 CFLAGS += -march=z900 CFLAGS += -fno-delete-null-pointer-checks -LDFLAGS += -nostdlib +LDFLAGS += -nostdlib -Wl,--build-id=none # We want to keep intermediate files .PRECIOUS: %.o