Tool/software: TI C/C++ Compiler
When I am compiling my code for EABI format, it is combining multiple section in one section which is causing an issue when I am trying to program the .out file. This does not happens in COFF format.
Below is the example -
I have following section in cmd file -
B0_DCSM_OTP_Z1_LINKPOINTER : origin = 0x78000, length = 0x00000C
/* B0 Z1 OTP. GPREG1/GPREG2 */
B0_DCSM_OTP_Z1_GPREG : origin = 0x7800C, length = 0x000004
/* B0 Z1 OTP. PSWDLOCK/RESERVED */
B0_DCSM_OTP_Z1_PSWDLOCK : origin = 0x78010, length = 0x000004
/* B0 Z1 OTP. CRCLOCK/RESERVED */
B0_DCSM_OTP_Z1_CRCLOCK : origin = 0x78014, length = 0x000004
/* B0 Z1 OTP. GPREG3/BOOTCTRL */
B0_DCSM_OTP_Z1_BOOTCTRL : origin = 0x7801C, length = 0x000004
After I compile the code in EABI format, below is what I get
Program Segment Table
id type load addr run addr file size mem size flags align
-- ---- --------- -------- --------- -------- ----- -----
0 PT_LOAD 0x00078000 0x00078000 0x18 0x18 r-- 2
Below is what I get incase of COFF -
id name page load addr run addr size align alloc
-- ---- ---- --------- -------- ---- ----- -----
1 $build.attributes 0 0x00000000 0x00000000 0x30 1 N
2 b0_dcsm_otp_z1_linkpoi... 0 0x00078000 0x00078000 0xc 2 Y
3 b0_dcsm_otp_z1_gpreg 0 0x0007800c 0x0007800c 0x4 2 Y
4 b0_dcsm_otp_z1_pswdlock 0 0x00078010 0x00078010 0x4 2 Y
5 b0_dcsm_otp_z1_crclock 0 0x00078014 0x00078014 0x4 2 Y
6 b0_dcsm_otp_z1_bootctrl 0 0x0007801c 0x0007801c 0x4 2 Y
--------------------------------------------------------------------------------------------------------------------
Question is, how can I tell compiler to not combine different sections in cmd file into one for EABI format?
Regards,
Vivek Singh