[all-commits] [llvm/llvm-project] 6e07e9: [PPC32] Parse bl __tls_get_addr(x at tlsgd)@plt+32768

Fangrui Song via All-commits all-commits at lists.llvm.org
Mon Aug 7 19:45:42 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 6e07e90890d61b1be19d3f5fbf00ea7430068325
      https://github.com/llvm/llvm-project/commit/6e07e90890d61b1be19d3f5fbf00ea7430068325
  Author: Fangrui Song <i at maskray.me>
  Date:   2023-08-07 (Mon, 07 Aug 2023)

  Changed paths:
    M llvm/lib/Target/PowerPC/AsmParser/PPCAsmParser.cpp
    M llvm/lib/Target/PowerPC/MCTargetDesc/PPCInstPrinter.cpp
    A llvm/test/MC/PowerPC/ppc32-tls.s

  Log Message:
  -----------
  [PPC32] Parse bl __tls_get_addr(x at tlsgd)@plt+32768

PPC32 -fpic/-fPIC generates `bl __tls_get_addr(x at tlsgd)@PLT` or
`bl __tls_get_addr(x at tlsgd)@PLT+32768`.
`powerpc-linux-gnu-gcc -fPIC` generates `bl __tls_get_addr+32668(x at tlsgd)@plt`.

These expressions can be parsed by GNU assembler but not by the integrated
assembler. Add the support.

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




More information about the All-commits mailing list