Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-11013

Supply a method for controlling the allocation of specific variables from the .common section

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: Low Low

      The files mentioned are attached. The C source file.c defines and uses this global variable.

      volatile int special_global;
      

      Code in the linker command file armlink.cmd tries to control how this variable is allocated.

          special_output_section_name
          {
             *(.common:special_global)   /* line 12 */
          } > D_MEM
      

      But it doesn't work.

      % armcl -mv7r5 --code_state=16 file.c -z -o file.out -l rtsv7R4_T_be_eabi.lib -m file.map armlink.cmd
      <Linking>
      "armlink.cmd", line 12: warning: no matching section
      

      Please supply some method for controlling the allocation of a common variable like special_global.

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: