public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] Code relocation in U-boot.
@ 2011-11-07 13:41 Sandeep Sharma
  2011-11-07 20:35 ` Albert ARIBAUD
  0 siblings, 1 reply; 3+ messages in thread
From: Sandeep Sharma @ 2011-11-07 13:41 UTC (permalink / raw)
  To: u-boot

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.

-- 

Thanks and Regards,
Sandeep Kumar,

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] Code relocation in U-boot.
  2011-11-07 13:41 [U-Boot] Code relocation in U-boot Sandeep Sharma
@ 2011-11-07 20:35 ` Albert ARIBAUD
  2011-11-08  7:02   ` Sandeep Sharma
  0 siblings, 1 reply; 3+ messages in thread
From: Albert ARIBAUD @ 2011-11-07 20:35 UTC (permalink / raw)
  To: u-boot

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 
<http://en.wikipedia.org/wiki/Executable_and_Linkable_Format#References> 
for details.

Amicalement,
-- 
Albert.

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [U-Boot] Code relocation in U-boot.
  2011-11-07 20:35 ` Albert ARIBAUD
@ 2011-11-08  7:02   ` Sandeep Sharma
  0 siblings, 0 replies; 3+ messages in thread
From: Sandeep Sharma @ 2011-11-08  7:02 UTC (permalink / raw)
  To: u-boot

Hi,

You are absolutely right. I am talking about ARM code located in start.S
file.
I am not able to figure out from from the referred link. I also consulted "
http://infocenter.arm.com/help/topic/com.arm.doc.ihi0044d/IHI0044D_aaelf.pdf
"
which talks about arm code relocation but it is also not helpful. It
nowhere talks about ".rel.dyn" section which i referred to in my previous
post. Can You provide any pointer from where i can get understanding of
this section.

Regards,,
Sandeep


On Tue, Nov 8, 2011 at 2:05 AM, Albert ARIBAUD <albert.u.boot@aribaud.net>wrote:

> 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 <http://en.wikipedia.org/wiki/**
> Executable_and_Linkable_**Format#References<http://en.wikipedia.org/wiki/Executable_and_Linkable_Format#References>>
> for details.
>
> Amicalement,
> --
> Albert.
>



-- 

--
Regards,
Sandeep Kumar,
Mb. - 7350016210

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-11-08  7:02 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-11-07 13:41 [U-Boot] Code relocation in U-boot Sandeep Sharma
2011-11-07 20:35 ` Albert ARIBAUD
2011-11-08  7:02   ` Sandeep Sharma

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox