From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Sun, 31 Oct 2010 19:53:49 +0100 Subject: [U-Boot] [RFC] arm926ejs: fix linker file for newer ld support In-Reply-To: <4CCDB701.8090700@gmail.com> References: <1288547025-16877-1-git-send-email-albert.aribaud@free.fr> <4CCDB701.8090700@gmail.com> Message-ID: <4CCDBB3D.1070106@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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: > 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.