question on relocation of arm920t
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
Quoted 3 lines · J.Hwan.Kim
However, the linker script
u-boot.ldstells that code start at0x00000000. How does the code address is set to start atTEXT_BASE?
How and where does the linker useTEXT_BASEaddress?
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