Message ID | e78f032774ebc4e9d1cb9c32687b34d231a69c76.1654178252.git.michal.simek@amd.com |
---|---|
State | Superseded |
Delegated to: | Michal Simek |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=monstr-eu.20210112.gappssmtp.com header.i=@monstr-eu.20210112.gappssmtp.com header.a=rsa-sha256 header.s=20210112 header.b=C7qK4c5Q; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4LDSNH2r4nz9sFr for <incoming@patchwork.ozlabs.org>; Fri, 3 Jun 2022 00:01:03 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 44EB184394; Thu, 2 Jun 2022 15:59:33 +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="C7qK4c5Q"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 4DE2E8434E; Thu, 2 Jun 2022 15:58:13 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-ej1-x62e.google.com (mail-ej1-x62e.google.com [IPv6:2a00:1450:4864:20::62e]) (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 0110884330 for <u-boot@lists.denx.de>; Thu, 2 Jun 2022 15:58:07 +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-ej1-x62e.google.com with SMTP id m20so10110598ejj.10 for <u-boot@lists.denx.de>; Thu, 02 Jun 2022 06:58:07 -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=1CMrFwxekvxqr0XXhdrNCjIJsaNIsUx5iF1FOpDo3LI=; b=C7qK4c5QOKyTv+u1e60BaffK4F9/ZVAqmok+9+GQDm3FTaXIBt0EwZ9z79W4xcwj3i iOZAU7iqigwzJh1bh4n05G03cMfniDRCuFJwaF4vrhCuehUd+o8sHwyIlOVv5p0lpceD c1aL3EBr26FqI2wJWJQXHSQw1EmHgwFyOeOPwMYLOMwu22zrLsqjfR6HJWffYPFsviyz DIuMDEwHZWsPvRKHRypCFkDm/L/axwhCl8PQuaLHyb6XluMVrDj6AdKmdUSjK0d8PtKJ anKPgimVWLrAlWuAK5QauRy7m+zfnbajMN7dcaWJDnRj+jDAfGfvNWjx4/dtPKkb1oOR JoPQ== 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=1CMrFwxekvxqr0XXhdrNCjIJsaNIsUx5iF1FOpDo3LI=; b=hSk7Pgd2h23hx9S0VqR0ROGwLidTeYD6DFu2cDZbhcIuP0VCQs7GtHK+t+4OZyP8x7 vx83qJZICB05byut7NaGlK6rxabSNffp5h6ekoW3kZu9drjfAEDpnexlDpVwx4fcCLWS bsGBMPQcxJM9uzL/tNaVC6wLnoY+ynxGsFYprwNAk9C4KZeSEVQn89M9zqAlucPgGX4F fGloILSvjgfW9Ijl0NeyF7jgr984BiiaZRYZb1YMImGGRnVTRuhMyeC/TQQHnsSIhBhT fMhdVfKdR+2qtdFIDQcr5xutZciaTi0m0cAIlh4oJ2PDiqMjlQREIMFLWOxeFzNA4CV0 IWLg== X-Gm-Message-State: AOAM531J0pGnJdlbNxm6D9lGYFcsL/wzg2nLXrpDCvT/4+gG4SS02JC3 xsd+tk60gqmcUnd1QyWqE7KlyY9865vizQ== X-Google-Smtp-Source: ABdhPJyhpBomtNJ35is23o0TOKPmn2qIDP3pA5wqWZICuTNcH2PvpMWRNveBJ32RRuX7kAQN6vlnFQ== X-Received: by 2002:a17:907:c21:b0:70b:735f:55aa with SMTP id ga33-20020a1709070c2100b0070b735f55aamr2222571ejc.332.1654178287515; Thu, 02 Jun 2022 06:58:07 -0700 (PDT) Received: from localhost ([2a02:768:2307:40d6::f9e]) by smtp.gmail.com with ESMTPSA id f24-20020a05640214d800b0042617ba63basm2516134edx.68.2022.06.02.06.58.07 (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 02 Jun 2022 06:58:07 -0700 (PDT) From: Michal Simek <monstr@monstr.eu> X-Google-Original-From: Michal Simek <michal.simek@amd.com> To: u-boot@lists.denx.de, git@xilinx.com Cc: Michal Simek <monstr@monstr.eu>, Ovidiu Panait <ovidiu.panait@windriver.com> Subject: [PATCH 11/22] microblaze: Separate code end substraction Date: Thu, 2 Jun 2022 15:57:35 +0200 Message-Id: <e78f032774ebc4e9d1cb9c32687b34d231a69c76.1654178252.git.michal.simek@amd.com> X-Mailer: git-send-email 2.36.0 In-Reply-To: <cover.1654178252.git.michal.simek@amd.com> References: <cover.1654178252.git.michal.simek@amd.com> 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 <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <https://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> X-Virus-Scanned: clamav-milter 0.103.5 at phobos.denx.de X-Virus-Status: Clean |
Series |
microblaze: Add support for full relocation
|
expand
|
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
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 <michal.simek@amd.com> --- arch/microblaze/cpu/start.S | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)