[ECOS] Regd the memory section eCos1.3.1
Prabal Halder
prabal@cdotd.ernet.in
Fri Apr 4 10:13:00 GMT 2003
The following is in the file "mlt_powerpc_vpc_ram.ldi" in
"install/include/pkgconf" directory.
SECTIONS
{
SECTIONS_BEGIN
.
.
.
SECTION_text (ram, ALIGN (0x4), LMA_EQ_VMA)
SECTION_fini (ram, ALIGN (0x4), LMA_EQ_VMA)
SECTION_rodata1 (ram, ALIGN (0x8), LMA_EQ_VMA)
SECTION_rodata (ram, ALIGN (0x8), LMA_EQ_VMA)
SECTION_fixup (ram, ALIGN (0x4), LMA_EQ_VMA)
SECTION_gcc_except_table (ram, ALIGN (0x1), LMA_EQ_VMA)
SECTION_data (ram, ALIGN (0x8), LMA_EQ_VMA)
SECTION_sbss (ram, ALIGN (0x4), LMA_EQ_VMA)
SECTION_bss (ram, ALIGN (0x10), LMA_EQ_VMA)
CYG_LABEL_DEFN(__heap1) = ALIGN (0x8);
SECTIONS_END
}
Here,
SECTION_rodata(ram, ALIGN (0x8), LMA_EQ_VMA)
is a READ_ONLY section in ram area. Means it is defined as READ_ONLY
in the linker script.
Is it possible in ecos to make a READ_ONLY area READ_WRITE and then
reassign it's type to READ_ONLY from within our application?
This is required because we want a section be READ_ONLY, on demand when
we want to write something to this area, we want to make it READ_WRITE and
after modification we want to be READ_ONLY once again.
Is this is possible in eCos(1.3.1)? If possible, please let me know and
please also tell me how to do it.
Regards,
Prabal
--------
==================================================================
******** **** CENTRE FOR
******** **** DEVELOPMENT
******** **** OF TELEMATICS
****
**** **** visit : http://www.cdot.com
**** ****
************** 9th Floor, Akhbar Bhawan,Chanakyapuri,
************** New Delhi - 110021
**************
prabal halder,
research engineer(R.E), room no.:933
VMS/UMS (switching group,S/W DII),
tel. : +91-11-4677525 ext. 233
===================================================================
--
Before posting, please read the FAQ: http://sources.redhat.com/fom/ecos
and search the list archive: http://sources.redhat.com/ml/ecos-discuss
More information about the Ecos-discuss
mailing list