1. Feb 07, 2023
    • Rainer Orth's avatar
      [Release] Increase test-release.sh verbosity · 8d650ca4
      Rainer Orth authored
      `test-release.sh` is too silent in some cases:
      
      - Only the build proper is run verbosely, but `check-all` is not.
      - `lit` is run without `-v`, so in case of failures one cannot see what's
      actually wrong.
      
      This patch fixes both issues, running all `${MAKE}` invocations with
      `$Verbose` (except for `${MAKE} install` where it would only add noise),
      and running `lit` with `-v`.
      
      Tested on `x86_64-pc-linux-gnu` and `arm64-apple-darwin21.6`.
      
      Differential Revision: https://reviews.llvm.org/D143249
      
      (cherry picked from commit 8d2d8e02)
      8d650ca4
    • Fangrui Song's avatar
      [ELF] -z notext: avoid dynamic relocations in .eh_frame · d8f57683
      Fangrui Song authored
      Fix https://github.com/llvm/llvm-project/issues/60392
      
      ```
      // a.cc
      void raise() { throw 42; }
      bool foo() {
        try { raise(); } catch (int) { return true; }
        return false;
      }
      int main() { foo(); }
      ```
      
      ```
      clang++ --target=x86_64-linux-gnu -fno-pic -mcmodel=large -no-pie -fuse-ld=lld -z notext a.cc -o a && ./a
      clang++ --target=aarch64-linux-gnu -fno-pic -no-pie -fuse-ld=lld -Wl,--dynamic-linker=/usr/aarch64-linux-gnu/lib/ld-linux-aarch64.so.1 -Wl,-rpath=/usr/aarch64-linux-gnu/lib -z notext a.cc -o a && ./a
      ```
      Both commands fail because we produce a dynamic relocation for
      R_X86_64_64/R_AARCH64_ABS64 in .eh_frame which will be adjusted to a wrong
      offset by `SectionBase::getOffset` after D122459.
      
      Since GNU ld uses a canonical PLT entry instead of a dynamic relocation for
      .eh_frame, we follow suit as well to avoid the issue.
      
      Mips has an ABI issue (https://github.com/llvm/llvm-project/issues/5837) and we
      don't implement GNU ld's DW_EH_PE_absptr conversion. mips64-eh-abs-reloc.s wants
      a dynamic relocation, so keep the original behavior for EM_MIPS.
      
      Differential Revision: https://reviews.llvm.org/D143136
      
      (cherry picked from commit 08c915fa)
      d8f57683
    • Joseph Huber's avatar
      [LinkerWrapper] Fix memory issues due to unguarded accesses to global state · e757c4d1
      Joseph Huber authored
      There were intemittent errors in the linker wrapper when using the
      sanitizers in parallel. First, this is because the `TempFiles` global
      was not guarded when creating a new file. Second, even though the `Args`
      list is passed as const, the internal state is mutable when adding a
      string. So that needs to be guarded too.
      
      Fixes https://github.com/llvm/llvm-project/issues/60437
      
      Reviewed By: tianshilei1992
      
      Differential Revision: https://reviews.llvm.org/D142985
      
      (cherry picked from commit 9c4591d7)
      e757c4d1
  2. Feb 06, 2023
  3. Feb 03, 2023
  4. Feb 02, 2023
  5. Feb 01, 2023
  6. Jan 31, 2023
  7. Jan 28, 2023