[U-Boot] [RFC] arm926ejs: fix linker file for newer ld support
Albert ARIBAUD
albert.aribaud at free.fr
Sun Oct 31 19:53:49 CET 2010
Le 31/10/2010 19:35, Darius Augulis a écrit :
> But it's strange, because I done the same test of declaring variable in
> start.s:
>
> ..globl cmd_start
> cmd_start:
> .word __u_boot_cmd_start
>
> Then disassembled elf shows it's value:
>
> 57e00048<cmd_start>:
> 57e00048: 00000000 .word 0x00000000
Indeed. :)
That's why, for instance, the _rel_dyn_start_ofs literal is defined as
.word _rel_dyn_start - _start
... rather than simply as
.word _rel_dyn start
... because the latter always produces 0 (it expects it to be fixed up
by the relocation code, which causes a catch-22) while the former
produces the expected difference which can then be fixed.
> Commands are there and somehow working, but at least it's very strange.
Yes, it baffled me too. :)
Amicalement,
--
Albert.
More information about the U-Boot
mailing list