[all-commits] [llvm/llvm-project] 177fd7: [ELF] Disallow input section description without a...

Fangrui Song via All-commits all-commits at lists.llvm.org
Fri May 13 11:06:16 PDT 2022


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

  Changed paths:
    M lld/ELF/ScriptParser.cpp
    M lld/test/ELF/linkerscript/no-filename-spec.s

  Log Message:
  -----------
  [ELF] Disallow input section description without a filename

GNU ld does not allow `.foo : { (*foo) }`, but we may recognize it as three
input section descriptions: file "(" with any section name, file "*foo" with
any section name, file ")" with any section name. Disallow the error-prone usage.

Reviewed By: peter.smith

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




More information about the All-commits mailing list