[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [microblaze-uclinux] bootstrap code
Hi Jozsef,
jozsef imrek wrote:
> john you are right, the necceseary information is present.
>
> as i understood the elf format is redundant per design. the various
> information on the sections/segments (size, position in file, position in
> memory, etc) are stored at two places: in the section headers and in the
> program headers. they are not the same, but redundant.
>
> reading the first few sentences of this:
>
> http://www.gnu.org/software/binutils/manual/ld-2.9.1/html_node/ld_23.html#SEC23
>
> and 'man elf' (those parts which are talking about program headers)
>
> i think that the program headers are created exactly for program/boot
> loaders. you can load the elf file based on the section headers (and i
> think the examples you pointed greg are working this way), but if possible
> i would rather use the program headers.
Ok, interresting. Can objcopy also create/set values in the program
headers?
Regards
Greg
------------------------------------------------------------------------
Greg Ungerer -- Chief Software Dude EMAIL: gerg@snapgear.com
SnapGear -- a CyberGuard Company PHONE: +61 7 3435 2888
825 Stanley St, FAX: +61 7 3891 3630
Woolloongabba, QLD, 4102, Australia WEB: http://www.SnapGear.com
___________________________
microblaze-uclinux mailing list
microblaze-uclinux@itee.uq.edu.au
Project Home Page : http://www.itee.uq.edu.au/~jwilliams/mblaze-uclinux
Mailing List Archive : http://www.itee.uq.edu.au/~listarch/microblaze-uclinux/