13.07.2015 Views

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

TASKING VX-toolset for ARM User Guide

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

<strong>TASKING</strong> <strong>VX</strong>-<strong>toolset</strong> <strong>for</strong> <strong>ARM</strong> <strong>User</strong> <strong>Guide</strong>C compiler option: --rename-sections (-R)Menu entry1. Select C/C++ Compiler » Miscellaneous.2. Add the option --rename-sections to the Additional options field.Command line syntax--rename-sections=[name=]suffix-R[name=]suffixDescriptionIn case a module must be loaded at a fixed address, or a data section needs a special place in memory,you can use this option to generate different section names. You can then use this unique section namein the linker script file <strong>for</strong> locating. Because sections have reserved names, the compiler will not actuallychange the section name, but will add a suffix to the name.With the section name you select which sections are renamed. With suffix you specify the suffix partwhich will be attached to the existing name. The suffix can contain the following suffix specifiers:{module}{name}{cname}expands to the module nameexpands to the symbol name as generated in the assembly file, including compilergenerated prefixes and suffixesexpands to the symbol name as used in your C source. Compiler generated nameswill be cleaned up and prefixed by a '$'.If you do not specify a section name, all sections will receive the specified suffix.ExampleTo change all sections named .data into .data.NEW, enter:carm --rename-sections=.data=NEW test.cTo add the name of the current module as suffix to all data sections, resulting in .data.test, enter:carm --rename-sections=.data={module} test.cThe following examples show the difference when using --rename-sections={name} or--rename-sections={cname}.Generated labels:350.section .text.tm..cocofun_1 ;; {name}.section .text.tm.$cocofun ;; {cname}.section .rodata.hs..1.str ;; {name}.section .rodata.hs.$str ;; {cname}

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!