Linker ignores use of the option --honor_cmdfile_order

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Medium
    • Code Generation Tools
    • CODEGEN-15637
    • Hide
      C29_1.0.0.LTS
      C29_3.0.0.LTS*
      ARMCLANG_4.0.0.LTS
      ARMCLANG_6.0.0.LTS*
      C7000_5.0.0.LTS
      C7000_3.1.0.LTS
      C2000_NEXT*
      C7000_4.1.0.LTS
      C29_2.2.0.LTS
      C6000_8.6.0.LTS*
      C2000_25.11.0.LTS
      C6000_8.5.0.LTS
      ARMCLANG_3.2.0.LTS
      PRU_2.4.0*
      C7000_6.2.0.LTS
      ARMCLANG_5.1.0.LTS
      Show
      C29_1.0.0.LTS C29_3.0.0.LTS* ARMCLANG_4.0.0.LTS ARMCLANG_6.0.0.LTS* C7000_5.0.0.LTS C7000_3.1.0.LTS C2000_NEXT* C7000_4.1.0.LTS C29_2.2.0.LTS C6000_8.6.0.LTS* C2000_25.11.0.LTS C6000_8.5.0.LTS ARMCLANG_3.2.0.LTS PRU_2.4.0* C7000_6.2.0.LTS ARMCLANG_5.1.0.LTS
    • Hide
      ARMCLANG_5.1.2.LTS*
      C6000_8.5.1.LTS*
      C29_3.0.0.LTS*
      ARMCLANG_6.0.0.LTS*
      C2000_25.11.2.LTS*
      C29_2.2.2.LTS
      C2000_NEXT*
      C7000_4.1.3.LTS*
      C6000_8.6.0.LTS*
      PRU_2.4.0*
      C7000_6.2.0.LTS
      C7000_5.0.3.LTS*
      ARMCLANG_4.0.6.LTS*
      C29_1.0.3.LTS*
      Show
      ARMCLANG_5.1.2.LTS* C6000_8.5.1.LTS* C29_3.0.0.LTS* ARMCLANG_6.0.0.LTS* C2000_25.11.2.LTS* C29_2.2.2.LTS C2000_NEXT* C7000_4.1.3.LTS* C6000_8.6.0.LTS* PRU_2.4.0* C7000_6.2.0.LTS C7000_5.0.3.LTS* ARMCLANG_4.0.6.LTS* C29_1.0.3.LTS*
    • default
    • In the linker command file, use the SECTIONS directive's GROUP option to force multiple output sections to be allocated contiguously in the order listed.

      The attached linker command file has these lines ...

      --honor_cmdfile_order
      
      SECTIONS
      {
          .main   : ...
      
          .text   : ...
      
          .rodata : ...
      
          .data   : ...
      }
      

      Build it ...

      % c29clang main.c test.cmd
      

      Inspect test.map. It shows the output sections are in the order: .main .rodata .data .text . This does not match the order in the linker command file.

            Assignee:
            TI User
            Reporter:
            TI User
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                Connection: Intermediate to External PROD System
                EXTSYNC-6753 - Linker ignores use of the option --...
                SYNCHRONIZED
                • Last Sync Date: