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

--hash-style=gnu can't be used on MIPS

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 1.3.2
    • 1.3.1
    • General
    • None
    • Debian GNU/Linux unstable
    • 14dd7b7e99705196f75e75fd4eb49f76e9229758

    Description

      gcc.js contains this code:

      if (product.moduleProperty("qbs", "targetOS").contains("linux")) {
          args.push("-Wl,--hash-style=gnu", "-Wl,--as-needed");
          args.push("-Wl,-soname=" + UnixUtils.soname(product, primaryOutput.fileName));
      }
      

      However, --hash-style=gnu linker options produces compilation error on MIPS:

      /usr/bin/ld: .gnu.hash is incompatible with the MIPS ABI
      collect2: error: ld returned 1 exit status
      

      I believe it will be better to not hardcode the hash style (and rely on binutils default choice) or add a check that architecture is not MIPS.

      Attachments

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

        Activity

          People

            jbornema Joerg Bornemann
            mandriver Dmitry Shachnev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes