[all-commits] [llvm/llvm-project] 9b83bf: [LoongArch] Always emit symbol-based relocations r...

ZhaoQi via All-commits all-commits at lists.llvm.org
Sat Aug 16 03:17:42 PDT 2025


  Branch: refs/heads/users/zhaoqi5/always-relocate-with-symbol
  Home:   https://github.com/llvm/llvm-project
  Commit: 9b83bfacf0ae66618747412bf0d3602d62c559b3
      https://github.com/llvm/llvm-project/commit/9b83bfacf0ae66618747412bf0d3602d62c559b3
  Author: Qi Zhao <zhaoqi01 at loongson.cn>
  Date:   2025-08-16 (Sat, 16 Aug 2025)

  Changed paths:
    M llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchAsmBackend.cpp
    M llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchELFObjectWriter.cpp
    M llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchMCTargetDesc.h
    M llvm/test/CodeGen/LoongArch/linker-relaxation.ll
    M llvm/test/CodeGen/LoongArch/xray-attribute-instrumentation.ll
    M llvm/test/MC/LoongArch/Misc/cfi-advance.s
    M llvm/test/MC/LoongArch/Relocations/fde-reloc.s
    M llvm/test/MC/LoongArch/Relocations/relax-addsub.s
    M llvm/test/MC/LoongArch/Relocations/relax-attr.s
    M llvm/test/MC/LoongArch/Relocations/relocation-specifier.s
    M llvm/test/MC/LoongArch/Relocations/sub-expr.s

  Log Message:
  -----------
  [LoongArch] Always emit symbol-based relocations regardless of relaxation

This commit changes all relocations to be relocated with symbols.

Without this commit, errors may occur in some cases, such as when
using `llc`, `lto+relax`, or combining relaxed and norelaxed
object files using `ld -r`.

Some tests updated.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list