From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Mon, 07 Nov 2011 21:35:15 +0100 Subject: [U-Boot] Code relocation in U-boot. In-Reply-To: References: Message-ID: <4EB84103.9000809@aribaud.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Le 07/11/2011 14:41, Sandeep Sharma a ?crit : > Hi, > > I am analyzing U-Boot code for "relocate_code" function. In this function > after copying the text section and before clearing the bss section we are > doing "fix .rel.dyn relocations". I want to know that what actually we are > doing in this section of code. What does this section actually contains and > what kind of fix we are doing in this. What are relative and absolute fix > that we are doing in this section. > > Any kind of help will we highly appreciated. Hi Sandeep, I assume you are specifically talking about ARM code in start.S? This code is an implementation of the relocation mechanism defined in the ELF specifications. Look up for details. Amicalement, -- Albert.