This is the mail archive of the
ecos-discuss@sources.redhat.com
mailing list for the eCos project.
Regd the memory section eCos1.3.1
- From: Prabal Halder <prabal at cdotd dot ernet dot in>
- To: Andrew Lunn <andrew dot lunn at ascom dot ch>
- Cc: eCos Disuss <ecos-discuss at sources dot redhat dot com>
- Date: Fri, 4 Apr 2003 15:21:18 +0500 (GMT+0500)
- Subject: [ECOS] Regd the memory section eCos1.3.1
- >received: from libra.cdotd.ernet.in by cdotd.cdotd.ernet.in (SMI-8.6/SMI-SVR4)id PAA13873; Fri, 4 Apr 2003 15:24:40 -0500
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