[all-commits] [llvm/llvm-project] a584b1: [Sparc] Implement BFD_RELOC_NONE

rorth via All-commits all-commits at lists.llvm.org
Fri Jan 28 01:45:41 PST 2022


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: a584b1a4d17a834490d40ea12281d36c3cfb89c1
      https://github.com/llvm/llvm-project/commit/a584b1a4d17a834490d40ea12281d36c3cfb89c1
  Author: Rainer Orth <ro at gcc.gnu.org>
  Date:   2022-01-28 (Fri, 28 Jan 2022)

  Changed paths:
    M llvm/lib/Target/Sparc/MCTargetDesc/SparcAsmBackend.cpp
    M llvm/lib/Target/Sparc/MCTargetDesc/SparcELFObjectWriter.cpp
    A llvm/test/MC/Sparc/reloc-directive.s

  Log Message:
  -----------
  [Sparc] Implement BFD_RELOC_NONE

`instrprof-icall-promo.test` `FAIL`s on Solaris/sparcv9:

  Profile-sparc :: instrprof-icall-promo.test
  Profile-sparcv9 :: instrprof-icall-promo.test

when compiling `compiler-rt/test/profile/Inputs/instrprof-icall-promo_2.cpp` with

  fatal error: error in backend: Relocation for CG Profile could not be created: unknown relocation name

This happens because the Sparc backend doesn't implement `BFD_RELOC_NONE`.
This patch fixes that, following what X86 does.

Tested on `sparcv9-sun-solaris2.11`.

Differential Revision: https://reviews.llvm.org/D118136




More information about the All-commits mailing list