how to get the size of a code section.
Kári Davíðsson
kd at flaga.is
Thu Mar 29 20:00:50 EST 2001
I am not aware of one, your connection from elf file to application is
Elf32_Ehdr in elf.h.
An example on how to use this structure is in the binary loader in the
kernel, fs/binfmt_elf.c
and you can read the spec (just do a search for it on google.com).
If you just want to "manage" some elf file sections check out objcopy
and objdump in the binutils package.
K.D.
> -----Original Message-----
> From: Srinivas Rao.M [mailto:msrao at vxl.co.in]
> Sent: 29. mars 2001 08:25
> To: linuxppc-embedded at lists.linuxppc.org
> Subject: how to get the size of a code section.
>
>
>
> Hello to all,
>
>
> I want to know how do you know the size of a section. suppose if i
> declare a section ".code_in_cache" , is there any C instruction or
> Assembly instruction to know the size of this section. ??
>
> thanks in advance,
> Srini...
>
>
>
> --
>
> We are responsible for what we are, and whatever we wish
> ourselves to be, we
> have the power to make ourselves. If what we are now has been
> the result of
> our own past actions, it certainly follows that whatever we
> wish to be in
> future can be produced by our present actions; so we have to
> know how to act.
> -Swami Vivekananda
>
>
>
>
** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/
More information about the Linuxppc-embedded
mailing list