[arm-gnu] How to avoid code memory entering into ER_ROsection
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[arm-gnu] How to avoid code memory entering into ER_ROsection



Hi,
   I m facing one problem using RVDS V4.1 with Code sourcery. I written assembly code for ARM926ej-s for 5 functions and kept sections for each functions separately like below. (from the starting of the function)
    ARM
    REQUIRE8
    PRESERVE8
    AREA ||.CodeSection||, CODE, READONLY, ALIGN=4 .
I compiled the code using armasm(RVCT4.1) and i linked the code using arm-none-eabi-ld.exe (Code sourcery). 
        The assembly funtions not moved into appropriate section named as ".CodeSection". Instead of moving ".CodeSection" its moved into ER_RO section. All other C functions and all moved into ".CodeSection". 
I have couple of question. please answer and provide solution as well.
====> How to move the Assembly functions under ".CodeSection" section?
====> What is the ER_RO and why Assembly functions moved into ER_RO section?
Thanks in Advance,
Balaji Janakiraman.
VINJEY Software Systems (P) Ltd.,
Bangalore.