[all-commits] [llvm/llvm-project] 2473b1: [ELF] Simplify getSectionRank and rewrite comments

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri May 12 23:58:51 PDT 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 2473b1af085ad54e89666cedf684fdf10a84f058
      https://github.com/llvm/llvm-project/commit/2473b1af085ad54e89666cedf684fdf10a84f058
  Author: Fangrui Song <i at maskray.me>
  Date:   2023-05-12 (Fri, 12 May 2023)

  Changed paths:
    M lld/ELF/Writer.cpp

  Log Message:
  -----------
  [ELF] Simplify getSectionRank and rewrite comments

Replace some RF_ flags with integer literals.
Rewrite the isWrite/isExec block to make the code block order reflect
the section order.
Rewrite some imprecise comments.

This is NFC, if we don't count invalid cases such as non-writable TLS
and non-writable RELRO.




More information about the All-commits mailing list