<div dir="ltr">Dear all,<div><br></div><div> I'm using Beaglebone BSP and the hello world example binary generated from 71600 bytes .text section to 1055088 bytes </div><div>after 'arm-rtems4.11-objcopy -S -O binary hello.exe hello.bin'.</div><div> I assume the issue is cause by .rwbarrier section.<br></div><div><br></div><div> arm-rtems4.11-readelf -e hello.ralf show:</div><div> </div><div><div>Section Headers:</div><div> [Nr] Name Type Addr Off Size ES Flg Lk Inf Al</div><div> [ 0] NULL 00000000 000000 000000 00 0 0 0</div><div> [ 1] .start PROGBITS 80000000 000094 000384 00 AX 0 0 4</div><div><i><b> [ 2] .text PROGBITS 80000384 000418 <u style="background-color:rgb(0,255,0)">0108a0</u> 00 WAX 0 0 4</b></i></div><div> [ 3] .init PROGBITS 80010c24 010cb8 000018 00 AX 0 0 4</div><div> [ 4] .fini PROGBITS 80010c3c 010cd0 000018 00 AX 0 0 4</div><div> [ 5] .rodata PROGBITS 80010c54 010ce8 000b0c 00 A 0 0 4</div><div> [ 6] .ARM.exidx ARM_EXIDX 80011760 0117f4 000008 00 AL 2 0 4</div><div> [ 7] .eh_frame PROGBITS 80011768 0117fc 000048 00 A 0 0 4</div><div> [ 8] .init_array INIT_ARRAY 800117b0 011844 000004 00 WA 0 0 4</div><div> [ 9] .fini_array FINI_ARRAY 800117b4 011848 000004 00 WA 0 0 4</div><div> [10] .jcr PROGBITS 800117b8 01184c 000004 00 WA 0 0 4</div><div> <b>[11] .rwbarrier NOBITS 800117bc 011850 <u style="background-color:rgb(255,0,0)">0ee844</u> 00 WA 0 0 1</b></div><div> [12] .vector NOBITS 80100000 011850 001400 00 WA 0 0 1</div><div> [13] .data PROGBITS 80101400 011860 000570 00 WA 0 0 8</div><div> [14] .bss NOBITS 80101980 011dd0 001d90 00 WA 0 0 32</div><div> [15] .work NOBITS 80103710 011dd0 fafc8f0 00 WA 0 0 1</div></div><div><br></div><div><br></div><div>rtems/c/src/lib/libbsp/arm/beagle/startup/linkcmds.beagle:</div><div>bsp_section_rwbarrier_align = DEFINED (bsp_section_rwbarrier_align) ? bsp_section_rwbarrier_align : 1M;<br></div><div><br></div><div>rtems/c/src/lib/libbsp/arm/shared/startup/linkcmds.base:<br></div><div><div><span class="" style="white-space:pre"> </span>.rwbarrier : ALIGN_WITH_INPUT {</div><div><span class="" style="white-space:pre"> </span>. = ALIGN (bsp_section_rwbarrier_align);</div><div><span class="" style="white-space:pre"> </span>} > REGION_DATA AT > REGION_DATA</div></div><div><br></div><div>So, what's the role of .rwbarrier section? Can i remove the section?</div><div><br></div><div><pre style="white-space:pre-wrap;color:rgb(0,0,0)">Best regards,
Ken Liao</pre></div></div>