工具/软件:Code Composer Studio
您好!
我的项目在 OMAP-L138的 C674x 侧运行 NDK,输出文件始终约为300KB。
最近我向其添加了 http 服务器支持。 输出文件非常大! 现在大约为26MB!
我没有对 linker.cmd 文件进行任何更改或添加任何内容。
我认为这是具有.far 段的内容。 出于某种原因、我不知道为什么、它在 .far 段中插入填充大小为0x17e4bae 且填充了"A"的填充。
以下是% ofd6x - obj_display=none、sections MyApp.out 的输出
目标文件:MyApp.out 段信息 ID 名称 加载 addr run addr 大小对齐 alloc ---- ------ ---- ------ ---- 1 $build.attributes 0x00000000 0x00000000 0x24 1 N 2 .stack 0xc17e4bb0 0xc17e4bb0 0x100000 8年 3.bss 0xc1938e00 0xc1938e00 0x2cc 8年 4 .cinit 0xc1935a40 0xc1935a40 0x2e24 8年 5.Pinit 0x00000000 0x00000000 0x0 1 N 6.数据 0xC0000000 0xC0000000 0x0 1年 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年 16 .const.2 0xc192bce0 0xc192bce0 0x9d5e 8年 17.switch 0xc1938864 0xc1938864 0x37c 4年 18 .far 0xC0000000 0xC0000000 0x17e4bae 128 Y 19 .cio 0xc19390cc 0xc19390cc 0x120 4年 20 .vecs 0xc1938c00 0xc1938c00 0x200 1024 Y 21 .debug_Abbrev 0x00000000 0x00000000 0xC3e 1 N
在% ofd6x -x -g MyApp.out 的输出中、.far 段填充了大约3、000万"A"
.far 0x12 0xC0000000 0xC0000000 0x17e4bae 0x0 0x0 0x1. 0x80 对 0x15fce4 0x0 0x0 AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
CCS 5.3
CGT 7.4.1
XDC 3.24.5.48
SYS/BIOS 6.34.2.18
NDK 2.21.0.32
有什么建议吗?