[okl4-developer] Iguana and BSS

Malcolm Purvis malcolmp at ok-labs.com
Thu Jul 17 13:22:45 EST 2008


>>>>> "Christian" == Christian SCHWARZ <christian.schwarz at st.com> writes:

Christian> isn't this only true for applications installed
Christian> into memory by the bootloader ie known at compile time.
Christian> Anything "later", especially applications loaded during
Christian> runtime from NV memory or via the internet, will have to be
Christian> handled by the application installer, ie Iguana or a
Christian> dedicated app.

Hi Christian,

It's the ELF loader's responsibility to clear the BSS before the program
starts.  For the image file, the ELF loader is the bootloader.  For
programs loaded at runtime it would be an external program.

For example, in the case of linux, the ELF loader is a combination of
the execve() system call and the dynamic loader /lib/ld-linux.so.2.

In our case Iguana does not provide any support for loading programs,
nor does it understand ELF.  These services would have to be provided by
an Iguana program.

If your building an image outside of our build system, you can you
remove the BSS sections from the image with the command:

$ tools/pyelf/elfweaver modify --remove_nobits -o out.elf in.elf

Malcolm

-- 
                    Malcolm Purvis <malcolmp at ok-labs.com>

Q: Why did the chicken cross the Mobius strip?
A: To get to the other... uh... err...



More information about the Developer mailing list