From patchwork Thu Dec 2 11:53:45 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: 12694498 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 820E3C433EF for ; Thu, 2 Dec 2021 11:56:35 +0000 (UTC) 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=CsqZjyYVxbOHy+wxl/k5KlVK3YSsmOuP/IMZiCszvTU=; b=R9yU7YByI+Hipb ZkpCQ3aB4WSiIKjW8IKOrKY5gX1W1Of9fjiNsoPf88kmU/RvnwsLpOdR6ukIcoQXfuKZx4JWE35EX DPy0oMcmFgeTUkbGJb8RtpcNSYTKzS+Q+cFBl0+ImlldTh3RftT4hMUIm/U0NSJFKdwL/54Ddz6qg oiW4NWUmxJmWcdkdyASqP7L92Ln1E6tdGWWzSu9qVzc8NJzp7+mJBexINZcDbq7PaKHAlj/wSTRYt vV6+RwmhKlFvNx4bYcv3YpbQ6C3+M2kJ2ElRphxwCd5AkEblZjXVFvGEy/xv3yMDgVgGbMo3T8C4A qKs216Rov6feScpQHeZw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mskft-00C537-2g; Thu, 02 Dec 2021 11:54:53 +0000 Received: from mail-wm1-x32a.google.com ([2a00:1450:4864:20::32a]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mskf0-00C4f8-TZ for linux-arm-kernel@lists.infradead.org; Thu, 02 Dec 2021 11:54:00 +0000 Received: by mail-wm1-x32a.google.com with SMTP id r9-20020a7bc089000000b00332f4abf43fso2541754wmh.0 for ; Thu, 02 Dec 2021 03:53:58 -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=O1VjI2U7XfRKbg+ZSN6i6QVFf+SzgfTpuCobVzeKOYA=; b=AZ6RZnRldc+wfjD7JyNw6gVSzMplldw/x0sXKFmvOTWX3o5QfKU8dEdAOs8ovGCvAx +3t9SQWgsaXbcjijZx2L7h5bLu4pHt+EAKzxd5DT0RdYn7ZMMDkua1FFgPNpZWYHbi/I olqpTc7K1bIvjBJykg4RE7jTYaDxNhyAKojMUI0/sy3mugJ1JAaqO0fM3hrU6VRzy7v0 r7cpZNC441WuUmlMskvHTEofZiDvVZ/YwjgWAgWZx/M1pB+3pkcZe+C4uom+LkCKlpR/ mavFXZYdL+q8DSR3GMu6gwg7b2pqveN89XtUhM4euL78f5BFMuXuoELzSnoQ0xT7dR99 EyCQ== 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=O1VjI2U7XfRKbg+ZSN6i6QVFf+SzgfTpuCobVzeKOYA=; b=DJF7OQxB99EDtySkh2Ewxd51BsaO7Z6uYoTrUPEUi5E5FcJisBQnNmIM9m33/5FNpC LswVrodECENx0PFcDttxqtwRUhIlq5IMcHbNxWtBv8xFd9QmXyeSSvr4TBqoWJkNA2lW x0JJ8wNYGxqm2PJUhY2dk6y3ezur41QdddzrjJ3GHfw2FOmSm5ICfdawEdPWaXZhpI00 FYLSegu/PxSDRa2WYMihIk4GyZz5FDYo7UtL6bjo/3L2aTFShGWLfYVuZv37Gieyd90s T1cAuHETNJT5R3NwVyQRTTgo/kOPk76XXBavvfL26VEEEDVSRS4PVURoNTq+h4Qn+dew 97SQ== X-Gm-Message-State: AOAM5303In6As9NBECnWL58lV1hP9kvzTHeXjxiedAgBLhXln0NB33PJ JMr2IG8LU9fp5HFiw82OlEKKNw== X-Google-Smtp-Source: ABdhPJzB8IQIjbi+vExxEGobek/s0HfYc8nfaQmzYUgGnjdRCz1Mc2+bXvqXWGaBGzOoxzN3h7vz3g== X-Received: by 2002:a1c:4d15:: with SMTP id o21mr5670343wmh.171.1638446037479; Thu, 02 Dec 2021 03:53:57 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id f15sm2448078wmg.30.2021.12.02.03.53.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 02 Dec 2021 03:53:53 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 9C93D1FF99; Thu, 2 Dec 2021 11:53:52 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: pbonzini@redhat.com, drjones@redhat.com, thuth@redhat.com Cc: kvm@vger.kernel.org, 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 v9 2/9] arm/flat.lds: don't drop debug during link Date: Thu, 2 Dec 2021 11:53:45 +0000 Message-Id: <20211202115352.951548-3-alex.bennee@linaro.org> X-Mailer: git-send-email 2.30.2 In-Reply-To: <20211202115352.951548-1-alex.bennee@linaro.org> References: <20211202115352.951548-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-20211202_035358_987904_E6977C29 X-CRM114-Status: GOOD ( 11.67 ) 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 Message-Id: <20211118184650.661575-3-alex.bennee@linaro.org> --- arm/flat.lds | 1 - 1 file changed, 1 deletion(-) diff --git a/arm/flat.lds b/arm/flat.lds index 6fb459ef..47fcb649 100644 --- a/arm/flat.lds +++ b/arm/flat.lds @@ -62,7 +62,6 @@ SECTIONS /DISCARD/ : { *(.note*) *(.interp) - *(.debug*) *(.comment) *(.dynamic) }