From patchwork Thu Oct 27 18:36:15 2022 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: 619219 Delivered-To: patch@linaro.org Received: by 2002:a17:522:c983:b0:460:3032:e3c4 with SMTP id kr3csp509491pvb; Thu, 27 Oct 2022 12:16:22 -0700 (PDT) X-Google-Smtp-Source: AMsMyM7kP3G0FqMqCbPWdm3xrJz7u2eQy2TbY7eh+AlPmo5Jun8jEyzFiALOPutOryDMP9GRJjft X-Received: by 2002:a05:622a:64a:b0:39c:e12f:7c84 with SMTP id a10-20020a05622a064a00b0039ce12f7c84mr42237588qtb.530.1666898182101; Thu, 27 Oct 2022 12:16:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1666898182; cv=none; d=google.com; s=arc-20160816; b=U5mfaKOJmkK7JAijsnJMMkX6rqIgRhXDFW3+U1G0oNvQ/k2WuatF0og/tFlCBplgbd 3xHQc7FEntGfuNMxX75Qze268ySWUKn2oae1YaPnohVcJPBH8W5N0Xrm8GLyciux5e64 +DPGANg6cPBi8qq0XZ0+rm29vV9gNDGOq1gUAeX/oGVDYxGTmj2aucKBoZPC3IMObzQ+ 0o4Jz4GjOGXOfbee/LB+tuDFISxzMpnHDZxjm8ZDPm/UDpIQM5PGhz0enPp27Dx+lrZ5 TiYIp0qATwfT5eI1F/jxIiXjPGAAkc1zhqdHX5qDA8lBpjuiOMZHkcyHEdcBZvUC9Y3s Be2Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=errors-to:sender:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=kyN/JXPSm96DkOnQJxVbK9SbWLvZmz7ZHh9iXoxP/MY=; b=Da4r9MDOJ9TQxVbTI2wwNfsUw7oejLOwnwkJQQ7nPUu/CzQ40bNO0pwhjPghvdNAeg r8XF1hn1RpKjcTod60IvCfKRqEdHpMAiXovXK3t5E/S1VU0NwIclDHLUS52Fa+9EYt+h Qhk7H08vS6yKhJV11ZUPe5oy95ULk3+OlAj2CpZGTOUJeXDWrHZbv6OcIKVPrT9l7ow7 SUf01eaE2Kes9kcIfJ7r8eQEmtELt/wwY+70WFKZKwzSDoGzD63oX14eeJrziaHoOmqL H1lphmFhbDTokfSjk2tXVr81fjxBZ+9L+vm1xbfYZE8POogiD3/E5DVKjtuPLLx5gA+D 9Akg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EX33OhJM; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id p6-20020ad45f46000000b004b1d2231b0esi1407657qvg.171.2022.10.27.12.16.22 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 27 Oct 2022 12:16:22 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=EX33OhJM; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oo7mN-0002OF-3V; Thu, 27 Oct 2022 14:38:59 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oo7kH-0001Ml-Cp for qemu-devel@nongnu.org; Thu, 27 Oct 2022 14:36:49 -0400 Received: from mail-wr1-x42e.google.com ([2a00:1450:4864:20::42e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oo7kE-0003LO-Iw for qemu-devel@nongnu.org; Thu, 27 Oct 2022 14:36:49 -0400 Received: by mail-wr1-x42e.google.com with SMTP id bs21so3687588wrb.4 for ; Thu, 27 Oct 2022 11:36:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=kyN/JXPSm96DkOnQJxVbK9SbWLvZmz7ZHh9iXoxP/MY=; b=EX33OhJMpPa4lO94RuPeSLMmbG3QEpp3vV6Zm3KgBQVEdb1sTucP4wS7V4PEvSvkxJ Uwsco3xhPcwxxTcoQjPLqcYxfDLKjLQsfh3JBBao+aj8wRDsU+wqqJtjH44SkIvY8Nob SDLZRz6mexCqEiXraM+IBLw44+frYmiEAqzOu8uxJiDQy8xLSNNeK6LvGRngf6+0nJ6L NiQEvmN4Kc+Yl/0zEBWMYN7xKIiIPVJOXAPz5Z54dryJ+QSvYagZzwm9M17iHbEjM0ET /dT7A2NgiI76ZhFocBTQ+gCJwz+tHlK/FWazIKgo6ZIfkx9uDBDO4vWBnkfrP1FXGkbQ CDbQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=kyN/JXPSm96DkOnQJxVbK9SbWLvZmz7ZHh9iXoxP/MY=; b=emziLdxTpyf763amd74lD9bGB2ooQNtTcQAYsESK99U8yaaZHLGuhXUybl+H16/02e o6wTMnxoNzjfbo53VHHk8hYqrRHQjkiHH6r7cVeMJ1KrNM2hWoqUz1nPnTiPafyYJpq/ M8sV/DvgfWjuXK+zeCkWamXxA+3gNgl34VBEsC+r/slvvoeEnD8sY6lbkU2rQqKXwdr/ qPnbblA2NFfqVWicFCzdastOPq12KttRXMg6Fa65U/AYWNG4+8OcbA+WKgW1BYgckp/A A+9fimSYWwhEZnfrcepbnvjL1omth9MWMuIgI3QOwop5Qzz3qerRMnmi4kSNc+N52SWs hp3g== X-Gm-Message-State: ACrzQf0R6Px1HvSuXBQn+uhWkC9sSH/HTz1dXD1NWlZ2bRUeljUwOdpW 1AeK4mdLloYUo+AhB+eiAvVBZcFvhZRKMQ== X-Received: by 2002:a5d:47aa:0:b0:236:79cc:6d5f with SMTP id 10-20020a5d47aa000000b0023679cc6d5fmr12425477wrb.391.1666895804900; Thu, 27 Oct 2022 11:36:44 -0700 (PDT) Received: from zen.linaroharston ([185.81.254.11]) by smtp.gmail.com with ESMTPSA id h2-20020adfe982000000b002322bff5b3bsm2142249wrm.54.2022.10.27.11.36.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 27 Oct 2022 11:36:41 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 357DD1FFC1; Thu, 27 Oct 2022 19:36:38 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: fam@euphon.net, berrange@redhat.com, f4bug@amsat.org, aurelien@aurel32.net, pbonzini@redhat.com, stefanha@redhat.com, crosa@redhat.com, Richard Henderson , =?utf-8?q?Alex_Benn=C3=A9e?= Subject: [PATCH v4 09/30] tests/tcg/nios2: Tweak 10m50-ghrd.ld Date: Thu, 27 Oct 2022 19:36:15 +0100 Message-Id: <20221027183637.2772968-10-alex.bennee@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20221027183637.2772968-1-alex.bennee@linaro.org> References: <20221027183637.2772968-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42e; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x42e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Qemu-devel" Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Richard Henderson More closely follow the default linker script for nios2. This magically fixes a problem resolving .got relocs from the toolchain's libgcc.a. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1258 Signed-off-by: Richard Henderson Signed-off-by: Alex Bennée Message-Id: <20221024035341.2971123-1-richard.henderson@linaro.org> --- tests/tcg/nios2/10m50-ghrd.ld | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/tests/tcg/nios2/10m50-ghrd.ld b/tests/tcg/nios2/10m50-ghrd.ld index 7db0d59ad7..71cdda450c 100644 --- a/tests/tcg/nios2/10m50-ghrd.ld +++ b/tests/tcg/nios2/10m50-ghrd.ld @@ -44,11 +44,15 @@ SECTIONS .data : ALIGN(4) { *(.shdata) *(.data .data.* .gnu.linkonce.d.*) - . = ALIGN(4); - _gp = ABSOLUTE(. + 0x8000); - *(.got.plt) *(.got) - *(.lit8) - *(.lit4) + } >ram :RAM + + HIDDEN (_gp = ALIGN(16) + 0x7ff0); + PROVIDE_HIDDEN (gp = _gp); + .got : ALIGN(4) { + *(.got.plt) *(.igot.plt) *(.got) *(.igot) + } >ram :RAM + + .sdata : ALIGN(4) { *(.sdata .sdata.* .gnu.linkonce.s.*) } >ram :RAM