[all-commits] [llvm/llvm-project] 4f7562: [MC][X86] Support .reloc *, BFD_RELOC_{NONE, 8, 16, 3...

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Mar 5 21:32:00 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 4f7562d52fe40fb5974360f391d5ed8bbbcdbd60
      https://github.com/llvm/llvm-project/commit/4f7562d52fe40fb5974360f391d5ed8bbbcdbd60
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-03-05 (Fri, 05 Mar 2021)

  Changed paths:
    M llvm/lib/Target/X86/MCTargetDesc/X86AsmBackend.cpp
    M llvm/test/MC/X86/reloc-directive-elf-32.s
    M llvm/test/MC/X86/reloc-directive-elf-64.s

  Log Message:
  -----------
  [MC][X86] Support .reloc *, BFD_RELOC_{NONE,8,16,32,64}, *

The names are unfortunate, but BFD_RELOC_NONE provides a generic way indicating
a dependency between two sections, which is useful for ld --gc-sections.
See https://sourceware.org/bugzilla/show_bug.cgi?id=27530


  Commit: aceea45d8753334fad4c6b958754d63151d4c57c
      https://github.com/llvm/llvm-project/commit/aceea45d8753334fad4c6b958754d63151d4c57c
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-03-05 (Fri, 05 Mar 2021)

  Changed paths:
    M llvm/lib/Target/AArch64/MCTargetDesc/AArch64AsmBackend.cpp
    M llvm/test/MC/AArch64/reloc-directive.s

  Log Message:
  -----------
  [MC][AArch64] Support .reloc *, BFD_RELOC_{NONE,16,32,64}, *

BFD_RELOC_NONE is useful for ld --gc-sections: it provides a generic way indicating a dependency between two sections.


  Commit: 3110187f1f1fe5ff755512999ace033abeb76095
      https://github.com/llvm/llvm-project/commit/3110187f1f1fe5ff755512999ace033abeb76095
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-03-05 (Fri, 05 Mar 2021)

  Changed paths:
    M llvm/lib/Target/PowerPC/MCTargetDesc/PPCAsmBackend.cpp
    M llvm/test/MC/PowerPC/ppc32-reloc-directive.s
    M llvm/test/MC/PowerPC/ppc64-reloc-directive.s

  Log Message:
  -----------
  [MC][PowerPC] Support .reloc *, BFD_RELOC_{NONE,16,32,64}, *

BFD_RELOC_NONE is useful for ld --gc-sections: it provides a generic way indicating a dependency between two sections.


Compare: https://github.com/llvm/llvm-project/compare/56ed64dfa9c7...3110187f1f1f


More information about the All-commits mailing list