From patchwork Thu Nov 18 18:46:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 12693069 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id B20EDC433F5 for ; Thu, 18 Nov 2021 18:48:45 +0000 (UTC) Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 8315B61A0D for ; Thu, 18 Nov 2021 18:48:45 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 8315B61A0D Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=linaro.org Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:Cc:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=2u7Bv6G+3pQYisx0MhKHcfCKHk5zyGZ5LdbB972bHGI=; b=alNMjrD+P3PQQR 3nzpHhxg2uAZJmYY4EVz67CWjA66j0l7RAtO8TiVEA8UiuXIw1HanA2zaNLYuhWyC6dCBBOrswJmD LFUcSXc11v/BOnJexYZ2jh9NDVUnkVL7aAG6I10jzY8QaR03/aozwRArwhMHExzhDDk4kyvmLQjiE 5V8VY/ihQAcAbI3BjNY9mgjpzGWA2B9XLRqyKB9wNMibvcz8z/O59ins175HccDCeswT0Es4EyBvC Rp2YD9sy4hUSK//nA6Cn8HICsWeyFlOjITqTuaoF7pw6AZ3qJ1fa4+/XDymwUFXkvGp+kvPSXW7o+ TMzvHqRxt7A2PenVk+Ww==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mnmRP-008d2D-NO; Thu, 18 Nov 2021 18:47:23 +0000 Received: from mail-wm1-x335.google.com ([2a00:1450:4864:20::335]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mnmQy-008ctE-J8 for linux-arm-kernel@lists.infradead.org; Thu, 18 Nov 2021 18:46:57 +0000 Received: by mail-wm1-x335.google.com with SMTP id o29so6256029wms.2 for ; Thu, 18 Nov 2021 10:46:55 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=tOmySd5ZdC4WjR5pqWQluHQkWraboy7ZlqKYZZCFjto=; b=odLpz8EZ1vyqBAm0rFDZYV49GrwMKDvbxKQ+SyB2aLw0WE8TCSj/Bcy2Xe+Hmz9Yt3 LhghE7I8TGtpPFT7Sx+h6c0SFZZZqdRuXFVetqaah8ct5fZeP9NLx1w16f9tf5UHFOap Q6LFGeNlkOa9WLERkzmi4vtzJNU8HSygywuPF3ynjMS1c3lsHDwQQGA/QbdCC43OICgM MUBL/rYK2YWxE1utNrG4cJLqyQmNClwBwhzWgzZXcZTHVmqV9D0zmd5Qfqirl2QVqrks bJgSkgaPxF7pqt4M3r/afE2djzrsEJS4xQkH+3X9L76mX6e3eOJvbogjrENFed54AwbF /wEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=tOmySd5ZdC4WjR5pqWQluHQkWraboy7ZlqKYZZCFjto=; b=6BhgOeq0XbaiCRBVYfi0WpK1TrlOPUM0YmwRKrO54x0LhMaBpZdUJ7AqSHdJ4WXAOF uB8zukTeS1BAqOGXTcuEZYDLZJ+ERe9fbWsEiwiCanHROgb+dTKU2qjNojKbchu1uSXc fJcDE1mLMFzPlPXYZaeLnWexpTUwHk3hjeDmJ0epREkv/7V5VbRt0pFR1tuML4wuM6hr uOIKNgRDgQkRmThyRsqM7zl1fL20EIX5SDU6useV3iXWaPXsSqf9R4Y5pY5tpC4Yc7lp MR2jAFTSS30lYAIjS5MqDK/tBhlOg5LQumG71xDuevaj/YBYBYNugcwU2SkJ9Tg6EiN1 G4Mw== X-Gm-Message-State: AOAM532qJrTTJ8T9fxaEYljp4A6dlmi7nYOe2hd+rImCgU4vwuMFgiOa 9ILLhJye/HHG6cdsj2LXQ4nMSA== X-Google-Smtp-Source: ABdhPJyHr89MEcvcKNNgqQkU7LLmSsVqr9xPkXN6m1nHufZRRPmyHO/j2xfEPRMZ4+sIHj9mgtlOow== X-Received: by 2002:a05:600c:4e01:: with SMTP id b1mr12398367wmq.109.1637261214762; Thu, 18 Nov 2021 10:46:54 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id n129sm464676wmn.36.2021.11.18.10.46.50 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 18 Nov 2021 10:46:50 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 4A7EF1FF99; Thu, 18 Nov 2021 18:46:50 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: kvm@vger.kernel.org Cc: idan.horowitz@gmail.com, qemu-arm@nongnu.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, christoffer.dall@arm.com, maz@kernel.org, =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [kvm-unit-tests PATCH v8 02/10] arm/flat.lds: don't drop debug during link Date: Thu, 18 Nov 2021 18:46:42 +0000 Message-Id: <20211118184650.661575-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211118184650.661575-1-alex.bennee@linaro.org> References: <20211118184650.661575-1-alex.bennee@linaro.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20211118_104656_662648_F48AEB62 X-CRM114-Status: GOOD ( 11.79 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.org It is useful to keep the debug in the .elf file so we can debug and it doesn't get copied across to the final .flat file. Of course we still need to ensure we apply the offset when we load the symbols based on where QEMU decided to load the kernel. (gdb) symbol-file ./builds/arm64/arm/tlbflush-data.elf -o 0x40080000 Signed-off-by: Alex Bennée --- arm/flat.lds | 1 - 1 file changed, 1 deletion(-) diff --git a/arm/flat.lds b/arm/flat.lds index 6fb459e..47fcb64 100644 --- a/arm/flat.lds +++ b/arm/flat.lds @@ -62,7 +62,6 @@ SECTIONS /DISCARD/ : { *(.note*) *(.interp) - *(.debug*) *(.comment) *(.dynamic) }