[all-commits] [llvm/llvm-project] a630ef: ELFObjectWriter: Disable STT_SECTION adjustment fo...

Fangrui Song via All-commits all-commits at lists.llvm.org
Wed Apr 16 00:07:38 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a630ef71e84a6bf09a99053ea42d37632ca0d18a
      https://github.com/llvm/llvm-project/commit/a630ef71e84a6bf09a99053ea42d37632ca0d18a
  Author: Fangrui Song <i at maskray.me>
  Date:   2025-04-16 (Wed, 16 Apr 2025)

  Changed paths:
    M llvm/lib/MC/ELFObjectWriter.cpp
    M llvm/test/MC/ELF/reloc-directive.s

  Log Message:
  -----------
  ELFObjectWriter: Disable STT_SECTION adjustment for .reloc

... to match GNU Assembler. This generalizes the
SHT_LLVM_CALL_GRAPH_PROFILE special case (which uses .reloc with
BFD_RELOC_NONE https://reviews.llvm.org/D104080).

Targets that want STT_SECTION adjustment cannot use
FirstLiteralRelocationKind derived fixup kinds.

Depends on the fix of #135521

Pull Request: https://github.com/llvm/llvm-project/pull/135519



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