Part Number: OMAP-L138
Tool/software: Code Composer Studio
Hi,
I have project running NDK on C674x side of omap-l138 , the output file was always around 300 KBytes.
Recently I have added http server support to it. The output file went huge! It is around 26Mbytes now!
I did not change nor add anything to linker.cmd file.
I think it is something with .far section. For some reason I don't know why, it inserts padding of size 0x17e4bae filled with "A" in the .far section.
Here is the output of % ofd6x --obj_display=none,sections MyApp.out
OBJECT FILE: MyApp.out
Section Information
id name load addr run addr size align alloc
-- ---- --------- -------- ---- ----- -----
1 $build.attributes 0x00000000 0x00000000 0x24 1 N
2 .stack 0xc17e4bb0 0xc17e4bb0 0x100000 8 Y
3 .bss 0xc1938e00 0xc1938e00 0x2cc 8 Y
4 .cinit 0xc1935a40 0xc1935a40 0x2e24 8 Y
5 .pinit 0x00000000 0x00000000 0x0 1 N
6 .data 0xc0000000 0xc0000000 0x0 1 Y
7 .sysmem 0x00000000 0x00000000 0x0 1 N
8 .args 0xc0000000 0xc0000000 0x0 4 N
9 xdc.meta 0xc0000000 0xc0000000 0xe7 8 N
10 .text:_c_int00 0x80010000 0x80010000 0xe0 32 Y
11 .debug_info 0x00000000 0x00000000 0xf2c2a 1 N
12 .debug_frame 0x00000000 0x00000000 0x44e9 1 N
13 .debug_line 0x00000000 0x00000000 0x14596 1 N
14 .text 0xc18e4bc0 0xc18e4bc0 0x47120 32 Y
15 .const.1 0xc18e4bb0 0xc18e4bb0 0x10 4 Y
16 .const.2 0xc192bce0 0xc192bce0 0x9d5e 8 Y
17 .switch 0xc1938864 0xc1938864 0x37c 4 Y
18 .far 0xc0000000 0xc0000000 0x17e4bae 128 Y
19 .cio 0xc19390cc 0xc19390cc 0x120 4 Y
20 .vecs 0xc1938c00 0xc1938c00 0x200 1024 Y
21 .debug_abbrev 0x00000000 0x00000000 0xc3e 1 N
And in the output of % ofd6x -x -g MyApp.out the .far section is filled with some thirty million "A"
<section>
<name>.far</name>
<index>0x12</index>
<physical_addr>0xc0000000</physical_addr>
<virtual_addr>0xc0000000</virtual_addr>
<raw_data_size>0x17e4bae</raw_data_size>
<reloc_count>0x0</reloc_count>
<line_count>0x0</line_count>
<addr_size>0x1</addr_size>
<alignment>0x80</alignment>
<data>true</data>
<file_offsets>
<raw_data_ptr>0x15fce4</raw_data_ptr>
<reloc_ptr>0x0</reloc_ptr>
<line_ptr>0x0</line_ptr>
</file_offsets>
<raw_data>
AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
Repeated around 460,000 lines!
CCS 5.3
CGT 7.4.1
XDC 3.24.5.48
SYS/BIOS 6.34.2.18
NDK 2.21.0.32
Any suggestions?