Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

risc-v: Disable PIC by default for now #430

Merged
merged 1 commit into from Aug 8, 2019
Merged

risc-v: Disable PIC by default for now #430

merged 1 commit into from Aug 8, 2019

Commits on Aug 8, 2019

  1. risc-v: Disable PIC by default for now

    Rust's linker cannot currently handle gcc's fPIC compilation units
    for RISC-V targets:
    
          = note: rust-lld: error:
              .got section detected in the input files. Dynamic relocations are not
              supported. If you are linking to C code compiled using the `gcc` crate
              then modify your build script to compile the C code _without_ the
              -fPIC flag. See the documentation of the `gcc::Config.fpic` method for
              details.
    
    So disable PIC by default for now for `riscv` targets.
    laanwj committed Aug 8, 2019
    Configuration menu
    Copy the full SHA
    97b648e View commit details
    Browse the repository at this point in the history