From mboxrd@z Thu Jan 1 00:00:00 1970 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 phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 366BEC43334 for ; Wed, 15 Jun 2022 13:23:50 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 73C9E84508; Wed, 15 Jun 2022 15:21:58 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=monstr.eu Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=monstr-eu.20210112.gappssmtp.com header.i=@monstr-eu.20210112.gappssmtp.com header.b="h5PKDgWy"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id D012A844E0; Wed, 15 Jun 2022 15:21:47 +0200 (CEST) Received: from mail-ed1-x52e.google.com (mail-ed1-x52e.google.com [IPv6:2a00:1450:4864:20::52e]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id AA879844D2 for ; Wed, 15 Jun 2022 15:21:45 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=none (p=none dis=none) header.from=monstr.eu Authentication-Results: phobos.denx.de; spf=none smtp.mailfrom=monstr@monstr.eu Received: by mail-ed1-x52e.google.com with SMTP id b8so16086929edj.11 for ; Wed, 15 Jun 2022 06:21:45 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=monstr-eu.20210112.gappssmtp.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=RyAF2xd4Hb4C8EpLjwqmXNodZhPy1T6CU0Ah81MTlxE=; b=h5PKDgWy1KRSaKDj4KFjr/3oBck13V9SNlIoIX0Yj+e6TTNNqqbm7iZK8qMcRsL7iV R53mOPBv3MzcLhO9bWHmM4547j47IdZ2AHczQopWZ+MySXI/uVqyGLH34h0zSUv8MnHJ /GKJ6jZzoSHZNLuu691txFcVd7yWzbQ8G3DNS/tUBRwslFz6N7wWldZCmwNhsL1AyXtg EqW+Nv7kOTuzTb3i2cvU+ek4SJWjVpycBuLTMtyFZxkGovvmze/DV2SxHOeaC3w0vtN2 j30CAqvz7TJak2jUZ4ZRn3hdODFPNvh4agcPgBtp8zqBVsWWUQB29IhqPg+zVYN+w+MF M9kg== 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=RyAF2xd4Hb4C8EpLjwqmXNodZhPy1T6CU0Ah81MTlxE=; b=Pe8MTxRQPDiDspEQqX+vDtar2dbs0U5auvXxGpPltIETeHXb6/BFE+owO61XbeP7ae HnQZzgVLtbpBiGEqmMOIkKXYOiJWEMzP6LuWyj86ltaX9cVfGgsv/1PSPLMdib+25NSc 6JCQCbo8KEVnZEF3r7uj7ovpgIGxznNaEl3038PVpzhR3PvPrrKNMAd5O/dWy6pie82n 24k1A8SuvUhU789aGEpC2vA11YtqDiwprKBLtnKJspfUGFT3Vy5p7oo5Nu2FfUUcM1/5 R97IkHKRjKkadxgM6oq/s7ms9OX42Y7OZk9Ldid0hjKNEOU8W0mEqsg6K2ApBtybJ9NX 6LpA== X-Gm-Message-State: AJIora/GK/f5Uk3YXoF3okHV9vJNdcDtlwn6comQMbEXlCEyKya94W7t 1JGRTUq/3Q7uBa0wXmPZefIPtzqnbVBaSw== X-Google-Smtp-Source: AGRyM1tnaA54Wn2mpu4bw3c++aFnmImxHJXnBVOUPbwd6lRtoP6ZsW5kx5cQT96Ph0HptSdCb8MVZQ== X-Received: by 2002:a05:6402:5008:b0:42d:c421:48c8 with SMTP id p8-20020a056402500800b0042dc42148c8mr12844233eda.422.1655299305022; Wed, 15 Jun 2022 06:21:45 -0700 (PDT) Received: from localhost ([2a02:768:2307:40d6::f9e]) by smtp.gmail.com with ESMTPSA id i3-20020a170906a28300b0070b8a467c82sm6328898ejz.22.2022.06.15.06.21.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 Jun 2022 06:21:44 -0700 (PDT) From: Michal Simek X-Google-Original-From: Michal Simek To: u-boot@lists.denx.de, git@xilinx.com Cc: Michal Simek , Ovidiu Panait Subject: [PATCH v4 12/23] microblaze: Separate code end substraction Date: Wed, 15 Jun 2022 15:21:08 +0200 Message-Id: <030863fa9a9c1ca0a9b082fe498522da09189fbc.1655299267.git.michal.simek@amd.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: References: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean Follow up patch will convert symbol handling that's why it is necessary to separate logic around symbols to special instruction. It adds 4B for new instruction but it is worth to do it to have code ready for for full relocation. Signed-off-by: Michal Simek --- (no changes since v1) arch/microblaze/cpu/start.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/microblaze/cpu/start.S b/arch/microblaze/cpu/start.S index 205d5f384c38..a35d8d8ea29a 100644 --- a/arch/microblaze/cpu/start.S +++ b/arch/microblaze/cpu/start.S @@ -273,7 +273,8 @@ relocate_code: add r23, r0, r7 /* Move reloc addr to r23 */ /* Relocate text and data - r12 temp value */ addi r21, r0, _start - addi r22, r0, _end - 4 /* Include BSS too */ + addi r22, r0, _end /* Include BSS too */ + addi r22, r22, -4 rsub r6, r21, r22 or r5, r0, r0 -- 2.36.1