[all-commits] [llvm/llvm-project] 09b81a: [ELF] Ignore --no-relax for RISC-V

Fangrui Song via All-commits all-commits at lists.llvm.org
Tue Jul 7 09:48:36 PDT 2020


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

  Changed paths:
    M lld/ELF/Options.td
    M lld/docs/ld.lld.1
    M lld/test/ELF/silent-ignore.test

  Log Message:
  -----------
  [ELF] Ignore --no-relax for RISC-V

In GNU ld, --no-relax can disable x86-64 GOTPCRELX relaxation.
It is not useful, so we don't implement it.

For RISC-V, --no-relax disables linker relaxations which have larger
impact.
Linux kernel specifies --no-relax when CONFIG_DYNAMIC_FTRACE is specified
(since http://git.kernel.org/linus/a1d2a6b4cee858a2f27eebce731fbf1dfd72cb4e ).
LLD has not implemented the relaxations, so this option is a no-op.

Reviewed By: grimar

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




More information about the All-commits mailing list