[all-commits] [llvm/llvm-project] 7d5910: [ELF] Support REL-format R_AARCH64_NONE relocation

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Feb 4 15:16:46 PST 2022


  Branch: refs/heads/release/14.x
  Home:   https://github.com/llvm/llvm-project
  Commit: 7d591098479927023ea3a393bbd47e40e1a22246
      https://github.com/llvm/llvm-project/commit/7d591098479927023ea3a393bbd47e40e1a22246
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-02-04 (Fri, 04 Feb 2022)

  Changed paths:
    M lld/ELF/Arch/AArch64.cpp
    R lld/test/ELF/relocation-none-aarch64.s
    A lld/test/ELF/relocation-none-aarch64.test

  Log Message:
  -----------
  [ELF] Support REL-format R_AARCH64_NONE relocation

-fprofile-use=/-fprofile-sample-use= compiles may produce REL-format
.rel.llvm.call-graph-profile even if the prevailing format is RELA on AArch64.
Add R_AARCH64_NONE to getImplicitAddend to fix this linker error:

```
ld.lld: error: internal linker error: cannot read addend for relocation R_AARCH64_NONE
PLEASE submit a bug report to https://crbug.com and run tools/clang/scripts/process_crashreports.py (only works inside Google) which will upload a report and include the crash backtrace.
```

(cherry picked from commit f457863ae345d2635026501f5383e0e625869639)


  Commit: 7ee59df38e38555bde58497ad6296f605a997831
      https://github.com/llvm/llvm-project/commit/7ee59df38e38555bde58497ad6296f605a997831
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-02-04 (Fri, 04 Feb 2022)

  Changed paths:
    R lld/test/ELF/relocation-none-aarch64.test
    R lld/test/ELF/relocation-none-arm.s
    R lld/test/ELF/relocation-none-i386.s
    R lld/test/ELF/relocation-none-x86-64.s
    A lld/test/ELF/relocation-none.test

  Log Message:
  -----------
  [ELF][test] Test getImplicitAddend for R_ARM_NONE/R_RISCV_NONE/R_386_NONE/R_X86_64_NONE

Similar to f457863ae345d2635026501f5383e0e625869639

(cherry picked from commit 3fd30958b79293f64545c7328c58982f959feb51)


  Commit: 31868bef9568751f64a1e3855bb0ef5cd9e93041
      https://github.com/llvm/llvm-project/commit/31868bef9568751f64a1e3855bb0ef5cd9e93041
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-02-04 (Fri, 04 Feb 2022)

  Changed paths:
    M llvm/lib/ObjectYAML/ELFYAML.cpp
    A llvm/test/tools/llvm-readobj/ELF/reloc-types-ppc.test

  Log Message:
  -----------
  [yaml2obj] Support R_PPC_* relocation types

(cherry picked from commit c161b30f5c23ef9fe246d6bdf875c5a08cf2df9f)


  Commit: ff421befd25827223952913d58e90d56e7779eb6
      https://github.com/llvm/llvm-project/commit/ff421befd25827223952913d58e90d56e7779eb6
  Author: Fangrui Song <i at maskray.me>
  Date:   2022-02-04 (Fri, 04 Feb 2022)

  Changed paths:
    M lld/ELF/Arch/PPC.cpp
    M lld/ELF/Arch/PPC64.cpp
    M lld/test/ELF/relocation-none.test

  Log Message:
  -----------
  [ELF] Support R_PPC_NONE/R_PPC64_NONE in getImplicitAddend

Similar to f457863ae345d2635026501f5383e0e625869639

(cherry picked from commit 53fc5d9b9a0110f097c6e9f7aa3bff3621eaf268)


Compare: https://github.com/llvm/llvm-project/compare/62a6f40e14db...ff421befd258


More information about the All-commits mailing list