From: du zhigang Date: Wed, 30 Mar 2011 07:13:40 +0800 (CST) Subject: [U-Boot] [RFC] [PATCH] arm: arm926ejs: use ELF relocations Message-ID: <128737.38661.qm@web15802.mail.cnb.yahoo.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de dear: i am using u-boot 2011.03-rc1 compiled by CS arm-none-eabi-gcc 4.5.1 board at91sam9263ek_norflash_boot_config i using gdb 6.8.1 debug it when u-boot compiled? i found an error ? /dzg/crosstool/4.5.1/bin/.arm-none-eabi-ld: warning: creating a DT_TEXTREL in object. ? /dzg/x86/insight-6.8-1/gdb/insight -se u-boot BFD: /dzg/arm/u-boot/u-boot-2011.03-rc1/u-boot: invalid string offset 37 >= 0 for section `' BFD: /dzg/arm/u-boot/u-boot-2011.03-rc1/u-boot: invalid string offset 32 >= 0 for section `' BFD: /dzg/arm/u-boot/u-boot-2011.03-rc1/u-boot: invalid string offset 53 >= 0 for section `' BFD: /dzg/arm/u-boot/u-boot-2011.03-rc1/u-boot: invalid string offset 1 >= 0 for section `' BFD: /dzg/arm/u-boot/u-boot-2011.03-rc1/u-boot: invalid string offset 20 >= 0 for section `' BFD: /dzg/arm/u-boot/u-boot-2011.03-rc1/u-boot: invalid string offset 82 >= 0 for section `' BFD: /dzg/arm/u-boot/u-boot-2011.03-rc1/u-boot: invalid string offset 67 >= 0 for section `' ? when i set breakpoint such as b board_init_f it seems to show wrong line number at line 132 ? i also found this version of u-boot change board_init_f to run in flash why dose it? in version 2010.09 it run after relocated in ram i found the linker link? init_fnc_t *init_sequence[] functions with address like 0x23fxxxxx what does the linker do with -pie option does it link the functions run in flash with addr like 0xaxxxx? ? do you test eldk 4.2 compiled with this board and run in norflash? ? thanks best regards