Hi All,
I am building an image for an M3 core and having trouble with the .const section not being loaded into memory. Other sections load correctly.
Output from readelf -l
Program Headers:
Type Offset VirtAddr PhysAddr FileSiz MemSiz Flg Align
LOAD 0x000034 0x00000000 0x00000000 0x0003c 0x0003c R E 0x4
LOAD 0x000070 0x000007f0 0x000007f0 0x00000 0x00010 RW 0x4
LOAD 0x000070 0x00000800 0x00000800 0x00140 0x00140 R 0x4
LOAD 0x0001b0 0x00100000 0x00100000 0x2524be 0x2524be R E 0x4
LOAD 0x252670 0x003524c0 0x003524c0 0x00000 0x11bac9 RW 0x10 <---- This is the .const section. It does not load.
LOAD 0x252670 0x0046df8a 0x0046df8a 0x00072 0x00072 R E 0x2
Notice that the .const section shows up with 0x0 FileSize in the binary. I am linking in several components which is why the section is large. What could be causing the linker to not include constants? I am using 4.9.0 version of the tool chain and building with ELF for omap4.\
Thanks.