[all-commits] [llvm/llvm-project] b71ef0: [MC] Support .reloc sym+constant, *, *

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Jul 14 13:46:17 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: b71ef0c50ac6728581e3c82ee90fe400dcc48bd6
      https://github.com/llvm/llvm-project/commit/b71ef0c50ac6728581e3c82ee90fe400dcc48bd6
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-07-14 (Tue, 14 Jul 2020)

  Changed paths:
    M llvm/include/llvm/MC/MCObjectStreamer.h
    M llvm/include/llvm/MC/MCStreamer.h
    M llvm/lib/MC/MCAsmStreamer.cpp
    M llvm/lib/MC/MCObjectStreamer.cpp
    M llvm/lib/MC/MCParser/AsmParser.cpp
    A llvm/test/MC/ELF/reloc-directive.s
    M llvm/test/MC/Mips/reloc-directive-bad.s

  Log Message:
  -----------
  [MC] Support .reloc sym+constant, *, *

For `.reloc offset, *, *`, currently offset can be a constant or symbol.
This patch makes it support any expression which can be folded to sym+constant.

Reviewed By: stefanp

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




More information about the All-commits mailing list