Uploaded image for project: 'Qbs ("Cubes")'
  1. Qbs ("Cubes")
  2. QBS-1162

Can't build thumb ARM code for cortex-m3

    XMLWordPrintable

Details

    • Bug
    • Resolution: Invalid
    • Not Evaluated
    • None
    • 1.8.0
    • Toolchains: GCC
    • None

    Description

      In 1.8.0, syntax of linkerFlags was changed (early there were raw flags, now - flags are prefixed by -Xlinker), so I can't specify -mthumb for gcc that is used as linker.

      So compiled code links non-thumb version of c/c++ routines, and fails on calling __libc_init_array.

      Current linker call looks like

      /usr/bin/arm-none-eabi-gcc -Wl,-T/.../STM32F103C8Tx_FLASH.ld -Wl,--gc-sections -o .... 
      

       

      How I can specify arch/instruction set for GCC called for linking? commonCompilerFlags arent passed here for some reason...

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kandeler Christian Kandeler
            nitr0 Andrew
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes