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

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Feb 4 13:21:01 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: f457863ae345d2635026501f5383e0e625869639
      https://github.com/llvm/llvm-project/commit/f457863ae345d2635026501f5383e0e625869639
  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.
```




More information about the All-commits mailing list