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 CFC87C433F5 for ; Thu, 25 Nov 2021 01:30:09 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id E60F0811D2; Thu, 25 Nov 2021 02:30:05 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=etri.re.kr Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=dooray.com header.i=@dooray.com header.b="Bo5AbZez"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 32FAF811D2; Thu, 25 Nov 2021 02:30:03 +0100 (CET) Received: from mscreen.etri.re.kr (mscreen.etri.re.kr [129.254.9.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 3CEB382F87 for ; Thu, 25 Nov 2021 02:29:50 +0100 (CET) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=etri.re.kr Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=ckim@etri.re.kr Received: from unknown (HELO send002-relay.gov-dooray.com) (211.180.235.153) by 129.254.9.16 with ESMTP; 25 Nov 2021 10:29:47 +0900 X-Original-SENDERIP: 211.180.235.153 X-Original-MAILFROM: ckim@etri.re.kr X-Original-RCPTTO: u-boot@lists.denx.de Received: from [10.162.225.106] (HELO smtp001-imp.gov-dooray.com) ([10.162.225.106]) by send002-relay.gov-dooray.com with SMTP id ab2505e5619ee70b; Thu, 25 Nov 2021 10:29:47 +0900 DKIM-Signature: a=rsa-sha256; b=Bo5AbZezfRbdme1VzXHayhZDJr7VKrmtTY1QTD7exp31Q6wongBCw/OxtoKkHENEms/Jbp+kKe B+XlOHXVULlHPNt5XwmJu+nrc20RpgJzFx+Cgm3l6KLV8savhTxRSX/LKyAs5DG67kncnxpP3BOp 7/MnoIY35k81CnBxgSNpJFGb8l6P7Tiu18v2cKZkeq8WXzhu4xrfS/vZIbAFxYqqWWm5it1G03aC jnibj62LMwQcPeS83VtMeKisWHvowHKpR9zAvVQcCjOh2b9i4iphm059cqtJqaNy27D0NySYxm9t PG6C+xoVdCcuq9BL1aR+lz6XFe9lOYf0CwUBRntg==; c=relaxed/relaxed; s=selector; d=dooray.com; v=1; bh=o4msCqw4JfPFbtWktbOUmN0fHNbXENs4OJSjS9O46xU=; h=From:To:Subject:Message-ID; Received: from [129.254.132.39] (HELO CHANKIMPC) ([129.254.132.39]) by smtp001-imp.gov-dooray.com with SMTP id aa399540619ee70a; Thu, 25 Nov 2021 10:29:46 +0900 From: "Chan Kim" To: "U-Boot Mailing List" Subject: variable __rel_dyn_start and __rel_dyn_end missing for u-boot proper? Date: Thu, 25 Nov 2021 10:29:46 +0900 Message-ID: <025401d7e19b$ee5223e0$caf66ba0$@etri.re.kr> MIME-Version: 1.0 X-Mailer: Microsoft Outlook 16.0 Content-Language: ko Thread-Index: Adfhmr56Dnsp2ya9SB2zjzaaMPIFag== Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.37 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.37 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.2 at phobos.denx.de X-Virus-Status: Clean Hello experts, I can't find the definition of variable __rel_dyn_start and __rel_dyn_end for u-boot proper build. Those variables are used in arch/arm/cpu/armv8/start.S (though they are enclosed in #ifdef CONFIG_POSISION_INDEPDNED and #endif) pie_fixup: adr x0, _start /* x0 <- Runtime value of _start */ ldr x1, _TEXT_BASE /* x1 <- Linked value of _start */ subs x9, x0, x1 /* x9 <- Run-vs-link offset */ beq pie_fixup_done adrp x2, __rel_dyn_start /* x2 <- Runtime &__rel_dyn_start */ add x2, x2, #:lo12:__rel_dyn_start adrp x3, __rel_dyn_end /* x3 <- Runtime &__rel_dyn_end */ add x3, x3, #:lo12:__rel_dyn_end pie_fix_loop: Shouldn't they be added in arch/arm/cpu/armv8/u-boot.lds like in arch/arm/cpu/u-boot-spl.lds? These are only places __rel_dyn_star/end are defined for arm. (v2021.10) ckim@ckim-ubuntu:~/U-BOOT/u-boot$ grep '__rel_dyn_\(start\|end\).*=.*\.' arch/arm -r arch/arm/cpu/u-boot-spl.lds: __rel_dyn_start = .; arch/arm/cpu/u-boot-spl.lds: __rel_dyn_end = .; arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds: __rel_dyn_start = .; arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds: __rel_dyn_end = .; By the way, I asked a question about the relocation code on stack exchange. I would be very happy if anyone here could spare some time to answer my question. https://stackoverflow.com/questions/70092014/cant-exactly-understand-the-ass embly-code-about-how-relocation-works-in-u-boot/70094227#70094227 Thank you! Chan Kim