<html><body><div style="font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000"><div>This section helps to protect the code and read-only sections from write access via the MMU.  I would simply avoid generating bin files, they are next to useless.<br></div><div><br></div><div><span id="zwchr" data-marker="__DIVIDER__">----- Am 27. Mai 2015 um 17:58 schrieb Ken Liao <ken.i18n@gmail.com>:<br></span></div><div data-marker="__QUOTED_TEXT__"><blockquote style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;" data-mce-style="border-left: 2px solid #1010FF; margin-left: 5px; padding-left: 5px; color: #000; font-weight: normal; font-style: normal; text-decoration: none; font-family: Helvetica,Arial,sans-serif; font-size: 12pt;"><div dir="ltr">Dear all,<br><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><br><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 <span style="background-color: #00ff00; text-decoration: underline;" data-mce-style="background-color: #00ff00; text-decoration: underline;">0108a0</span> 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 <span style="background-color: #ff0000; text-decoration: underline;" data-mce-style="background-color: #ff0000; text-decoration: underline;">0ee844</span> 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><br><br><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><br><div>rtems/c/src/lib/libbsp/arm/shared/startup/linkcmds.base:<br></div><div><div><span class="" style="white-space: pre;" data-mce-style="white-space: pre;"> </span>.rwbarrier : ALIGN_WITH_INPUT {</div><div><span class="" style="white-space: pre;" data-mce-style="white-space: pre;"> </span>. = ALIGN (bsp_section_rwbarrier_align);</div><div><span class="" style="white-space: pre;" data-mce-style="white-space: pre;"> </span>} > REGION_DATA AT > REGION_DATA</div></div><br><div>So, what's the role of .rwbarrier section? Can i remove the section?</div><br><div><pre style="white-space: pre-wrap; color: #000000;" data-mce-style="white-space: pre-wrap; color: #000000;">Best regards,

Ken Liao</pre></div></div><br>_______________________________________________<br>users mailing list<br>users@rtems.org<br>http://lists.rtems.org/mailman/listinfo/users<br></blockquote></div></div></body></html>