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

Allow using sanitizer runtimes on RISC-V #564

Open
wants to merge 9 commits into
base: dev
Choose a base branch
from

Commits on Sep 30, 2021

  1. [CHERI-RISC-V] Add baseline test for conflicting sanitizer library names

    We currently attempt to link libclang_rt-<lib>-riscv{32,64}.a for both
    purecap and non-purecap. Since there is no per-ABI subdirectory for the
    compiler-rt libraries, we should be using a different basename for the
    purecap runtime libs.
    arichardson committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    a7421e8 View commit details
    Browse the repository at this point in the history
  2. [compiler-rt][cmake] Correctly set architecture for purecap

    We have to use a different architecture suffix for purecap since not all
    sanitizers are supported. We already have one for MIPS but the previous
    logic to select it based on the target triple no longer works. This change
    should be more future proof and sets the RISC-V architecture suffixes to
    riscv{32,64}c.
    arichardson committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    09d7ac6 View commit details
    Browse the repository at this point in the history
  3. [compiler-rt] Unbreak the MIPS purecap build

    This has regressed since the last merge.
    arichardson committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    9a1a63a View commit details
    Browse the repository at this point in the history
  4. [sanitizer] Fix build on FreeBSD RISC-V

    We have to avoid calling renameat2 and clone on FreeBSD.
    Additionally, the mcontext structure has different members.
    
    Reviewed By: jrtc27, luismarques
    
    Differential Revision: https://reviews.llvm.org/D103886
    
    (cherry picked from commit b475ce3)
    arichardson committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    d4dda34 View commit details
    Browse the repository at this point in the history
  5. [compiler-rt] Allow building the builtins for RISC-V purecap

    Currently without save.S and restore.S as those need
    CTSRD-CHERI#533
    arichardson committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    6880e5d View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    418cc82 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    16ac532 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    de6704f View commit details
    Browse the repository at this point in the history
  9. [CHERI-RISC-V] Use suffixed sanitizer libraries for purecap

    Since both the plain RISC-V and purecap RISC-V compiler-rt libraries will
    be installed to the same directory we have to use a different name for
    the purecap ones. This patch uses a "c" suffix for the purecap ones.
    arichardson committed Sep 30, 2021
    Configuration menu
    Copy the full SHA
    f5ac08e View commit details
    Browse the repository at this point in the history