From: Keichii M. <kei...@ya...> - 2005-03-30 01:45:17
|
Hello, After upgrading the latest u-boot provided by gumstx, u-boot provides bootelf command to boot ELF image. What's the load and entry addresses for elf image? I want to give it a try bootelf, thank you very much. __________________________________ Do you Yahoo!? Yahoo! Small Business - Try our new resources site! http://smallbusiness.yahoo.com/resources/ |
From: Dave H. <dhy...@gm...> - 2005-03-30 02:42:27
|
Hi Keichii, > After upgrading the latest u-boot provided by gumstx, > u-boot provides bootelf command to boot ELF image. > What's the load and entry addresses for elf image? > I want to give it a try bootelf, thank you very much. ELF files contain both the load address and the start address (which are determined at link time). arm-linux-objdump -f somefile.elf will show you the start address arm-linux-objdump -h somefile.elf will show each of the sections in the file. The VMA is the run address (i.e. the address that section was linked to be run at), and LMA is the address that the section will be loaded into memory at. Normally, the VMA and the LMA are the same. They typically only differ when you need to copy the code to it's final destination (this happens when you use overlays or in some embedded systems when you need to say initialize the SDRAM before copying your code there. -- Dave Hylands Vancouver, BC, Canada http://www.DaveHylands.com/ |
From: mgross <mar...@th...> - 2005-03-30 04:53:20
|
On Tuesday 29 March 2005 18:42, Dave Hylands wrote: > Hi Keichii, > > > After upgrading the latest u-boot provided by gumstx, > > u-boot provides bootelf command to boot ELF image. > > What's the load and entry addresses for elf image? > > I want to give it a try bootelf, thank you very much. > > ELF files contain both the load address and the start address (which > are determined at link time). > > arm-linux-objdump -f somefile.elf > > will show you the start address > > arm-linux-objdump -h somefile.elf > > will show each of the sections in the file. The VMA is the run address > (i.e. the address that section was linked to be run at), and LMA is > the address that the section will be loaded into memory at. Normally, > the VMA and the LMA are the same. They typically only differ when you > need to copy the code to it's final destination (this happens when you > use overlays or in some embedded systems when you need to say > initialize the SDRAM before copying your code there. One of my favorate tools is readelf :) --mgross |