https://www.iar.com/globalassets/2/ew_ilinkguide.jpn_20131006.pdf
If you refer SFE(.text) or SFB(.text), the linker does not obey to your rules in your linker definition file and it just clubs all together to find the end and start of .text section. Use block instead as follows:
define block TEXT with fixed order { rw code object mpu7r.o, rw code object rskrat1.o, rw code };
define block TEXT_init with fixed order { ro code object mpu7r.o, ro code object rskrat1.o, ro code };
----
Even Text and .rodata can be split as follows:
define block TEXT { ro code };
define block RODATA { readonly };
If you refer SFE(.text) or SFB(.text), the linker does not obey to your rules in your linker definition file and it just clubs all together to find the end and start of .text section. Use block instead as follows:
define block TEXT with fixed order { rw code object mpu7r.o, rw code object rskrat1.o, rw code };
define block TEXT_init with fixed order { ro code object mpu7r.o, ro code object rskrat1.o, ro code };
----
Even Text and .rodata can be split as follows:
define block TEXT { ro code };
define block RODATA { readonly };
No comments:
Post a Comment