Storing the memory configuration used at link-time into a binary.

Denis FERRANTI denis.ferranti@st.com
Wed Feb 25 07:59:00 GMT 2009


Hello maintainers of the GNU linker,

Our co-workers at STMicroelectronics develop on many SoCs at a time
which sometimes only differ from memory configurations, so they have
[to take care] to use a compatible linker-script (among many).  That's
why we introduced a new linker-script statement "CREATE_MEMINFO_TABLE"
which stores the memory configuration used at link-time into a binary,
then the embedded "meminfo" table can be used by loaders to make
compatibility checks or by simulators for auto-configuration.

Actually, I would like to know if you are interested in such a feature
and, if so, how can we help altogether for a further integration into
the upstream?

Best regards,

PS: the library "libmeminfo" used to extract such tables is freely
    available on-line http://repo.or.cz/w/libmeminfo (BSD-licensed)
    and currently hosts the patch against the GNU linker 2.18 and 
2.19.51.01.

-- 
Denis Ferranti



More information about the Binutils mailing list