From patchwork Wed Aug 22 14:39:01 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Avi Kivity X-Patchwork-Id: 1361541 Return-Path: X-Original-To: patchwork-kvm@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 55C7BDF280 for ; Wed, 22 Aug 2012 14:39:12 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756705Ab2HVOjI (ORCPT ); Wed, 22 Aug 2012 10:39:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:28976 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756491Ab2HVOjG (ORCPT ); Wed, 22 Aug 2012 10:39:06 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q7MEd6aL007518 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 22 Aug 2012 10:39:06 -0400 Received: from s01.tlv.redhat.com (s01.tlv.redhat.com [10.35.255.8]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id q7MEd46h014167; Wed, 22 Aug 2012 10:39:05 -0400 From: Avi Kivity To: kvm@vger.kernel.org Cc: Marcelo Tosatti Subject: [PATCH kvm-unit-tests] x86: add explicit ENTRY() declaration to linker scripts Date: Wed, 22 Aug 2012 17:39:01 +0300 Message-Id: <1345646341-30676-1-git-send-email-avi@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org It appears that some toolchain update caused the entry address in the elf image to be zero. Add explicit ENTRY() declarations as a workaround. Signed-off-by: Avi Kivity --- flat.lds | 1 + x86/realmode.lds | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/flat.lds b/flat.lds index 4888f3a..a278b56 100644 --- a/flat.lds +++ b/flat.lds @@ -18,3 +18,4 @@ SECTIONS edata = .; } +ENTRY(start) diff --git a/x86/realmode.lds b/x86/realmode.lds index c7386b8..0ed3063 100644 --- a/x86/realmode.lds +++ b/x86/realmode.lds @@ -9,4 +9,4 @@ SECTIONS .bss : { *(.bss) } edata = .; } - +ENTRY(start)