descriptionThe libmeminfo extracts the memory configuration of an ELF file.
ownercedric.vincent@st.com
last changeTue, 6 Jul 2010 11:10:54 +0000 (6 13:10 +0200)
content tags
add:
readme

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.

shortlog
2010-07-06 Cédric VINCENTAdd patch against GNU Binutils-2.20 to support "meminfo".master
2010-04-14 Cédric VINCENTAdd patch against GNU Binutils-2.15 to support "meminfo".
2009-09-30 Cedric VINCENTFix an unsigned comparison with zero.
2009-01-26 Cedric VINCENTAdd patch against GNU Binutils-2.19.51.0.1 to support...
2009-01-26 Cedric VINCENTUpdate the README file and add an example.mob
2009-01-26 Cedric VINCENTAdd a meminfo test-case to the GNU Binutils' test-suite.
2009-01-26 Cedric VINCENTAdjust flags value according to the previous patch...
2009-01-26 Cedric VINCENTGNU binutils require a patch for the new CREATE_MEMINFO...
2008-06-19 vincentmeminfo: split apart meminfo.c.
2008-06-19 vincentmeminfo: do not close the file descriptor in meminfo_re...
2008-06-19 vincentmeminfo: do not adjust meminfo's bounds for a relocatab...
2008-05-29 vincentmeminfo: fix support to ELF32 & little-endian targets...
2008-04-14 vincentCurrently only the static build of libmeminfo/mind...
2008-04-14 vincentAdd (C)opyright and Licenses.
2008-04-14 vincentDo not define PACKAGE and VERSION macros.
2008-04-04 vincentUse libtool to create static and shared librairies.
...
heads
13 years ago master
15 years ago mob