| description | The libmeminfo extracts the memory configuration of an ELF file. |
| owner | cedric.vincent@st.com |
| last change | Tue, 6 Jul 2010 11:10:54 +0000 |
| URL | git://repo.or.cz/libmeminfo.git |
| http://repo.or.cz/r/libmeminfo.git | |
| Push URL | ssh://repo.or.cz/srv/git/libmeminfo.git |
| Content tags: |
The libmeminfo extracts the memory configuration from ELF files. This
memory configuration must be saved inside a binary at link-time with
the linker-script command CREATE_MEMINFO_TABLE. This new
command and its documentation are available once
the patch
is applied against the GNU Binutils.
The file meminfo.h comments the API, and the file mind.c is a very good example on how to use this library. You can test the program mind against the file test.elf:
mem4data : origin = 0x00000000, length = 0x00010000, flags = 0x00000012, not_flags = 0x00000000 [wi] mem4text : origin = 0x40000000, length = 0x00300000, flags = 0x00000014, not_flags = 0x00000000 [xi]
If you don't want to use the local libELF to build the libmeminfo, set
the parameter --disable-local-libelf during the
configuration process or set the
variable enable_local_libelf to no in
the $CONFIG_SITE file.
| 18 months ago | master | log | tree |
| 3 years ago | mob | log | tree |