[all-commits] [llvm/llvm-project] 3b4dd6: [ELF][PPC64] Make --power10-stubs/--no-power10-stu...

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri Nov 26 11:52:01 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 3b4dd68de5b4aa5876366a3cab5ebf4f2ca047a2
      https://github.com/llvm/llvm-project/commit/3b4dd68de5b4aa5876366a3cab5ebf4f2ca047a2
  Author: Fangrui Song <i at maskray.me>
  Date:   2021-11-26 (Fri, 26 Nov 2021)

  Changed paths:
    M lld/ELF/Config.h
    M lld/ELF/Driver.cpp
    M lld/ELF/Options.td
    M lld/ELF/Thunks.cpp
    M lld/docs/ld.lld.1
    M lld/test/ELF/ppc64-pcrel-call-to-toc.s

  Log Message:
  -----------
  [ELF][PPC64] Make --power10-stubs/--no-power10-stubs proper aliases for --power10-stubs={auto,no}

This allows --power10-stubs= and --[no-]power10-stubs to override each other
(they are position dependent in GNU ld).

Also improve --help messages and the manpage.

Note: GNU ld's default "auto" mode uses heuristics to decide whether Power10
instructions are used. Arguably it is a design mistake of R_PPC64_REL24_NOTOC
(acked by the relevant folks on a libc-alpha discussion). We don't implement
"auto", so the default --power10-stubs is the same as "yes".




More information about the All-commits mailing list