[all-commits] [llvm/llvm-project] 01f798: [LoongArch] Use R_LARCH_ALIGN with section symbol ...

Jinyang He via All-commits all-commits at lists.llvm.org
Tue Apr 16 03:31:25 PDT 2024


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 01f79899ba349a0200586c8d05f5e22cca2ced31
      https://github.com/llvm/llvm-project/commit/01f79899ba349a0200586c8d05f5e22cca2ced31
  Author: Jinyang He <hejinyang at loongson.cn>
  Date:   2024-04-16 (Tue, 16 Apr 2024)

  Changed paths:
    M lld/ELF/InputSection.cpp
    A lld/test/ELF/loongarch-relax-align-ldr.s
    M lld/test/ELF/loongarch-relax-emit-relocs.s
    M llvm/lib/Target/LoongArch/MCTargetDesc/LoongArchAsmBackend.cpp
    M llvm/test/MC/LoongArch/Relocations/relax-addsub.s
    M llvm/test/MC/LoongArch/Relocations/relax-align.s

  Log Message:
  -----------
  [LoongArch] Use R_LARCH_ALIGN with section symbol (#84741)

In LoongArch psABI v2.30, the R_LARCH_ALIGN requires symbol index to
support the third parameter of alignment directive. Create symbol for
each section is redundant because they have section symbol which can
also be used as symbol index. So use section symbol directly for
R_LARCH_ALIGN.



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