Skip to contentSkip to conversation

question on relocation of arm920t

U-Boot J.Hwan.Kim 2 participants 2 messages Jun 10, 2009

lore
Share & tools
lore

J.Hwan.Kim

author
#0 lore raw

Hi, everyone

I'm a novice in u-boot.
I have a question about relocation of arm920t.

As far as I know, the relocation code address is defined at config.mk in board directory.
The code is copied to TEXT_BASE in start.S.
When the u-boot is compiled and linked, it seems that the code address is set to start at TEXT_BASE.
However, the linker script u-boot.lds tells that code start at 0x00000000. How does the code address is set to start at TEXT_BASE?
How and where does the linker use TEXT_BASE address?

Thanks in advnace.

Regards,
J.H.Kim

#1 lore raw
Quoted 3 lines · J.Hwan.Kim

However, the linker script u-boot.lds tells that code start at 0x00000000. How does the code address is set to start at TEXT_BASE?
How and where does the linker use TEXT_BASE address?

There is config.mk file at root and this line in it:

LDFLAGS += .. -Ttext $(TEXT_BASE) ..

at least in my tree. Maybe that is the answer.

--

Timo