[all-commits] [llvm/llvm-project] 2a9aed: [ELF] Support multiple SORT in an input section de...

Fangrui Song via All-commits all-commits at lists.llvm.org
Thu Nov 12 08:47:13 PST 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2a9aed0e8b538955f38f036bd34ea79adfce2ad7
      https://github.com/llvm/llvm-project/commit/2a9aed0e8b538955f38f036bd34ea79adfce2ad7
  Author: Fangrui Song <i at maskray.me>
  Date:   2020-11-12 (Thu, 12 Nov 2020)

  Changed paths:
    M lld/ELF/ScriptParser.cpp
    M lld/test/ELF/linkerscript/sort2.s
    M lld/test/ELF/linkerscript/wildcards.s

  Log Message:
  -----------
  [ELF] Support multiple SORT in an input section description

The second `SORT` in `*(SORT(...) SORT(...))` is incorrectly parsed as a file pattern.
Fix the bug by stopping at `SORT*` in `readInputSectionsList`.

Reviewed By: grimar

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




More information about the All-commits mailing list