[all-commits] [llvm/llvm-project] deaf12: Warn when an output section name is longer than 8 ...

Reid Kleckner via All-commits all-commits at lists.llvm.org
Fri Nov 1 13:01:12 PDT 2019


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: deaf121b657323fde17dd862a13b05e8b7ee6954
      https://github.com/llvm/llvm-project/commit/deaf121b657323fde17dd862a13b05e8b7ee6954
  Author: Reid Kleckner <rnk at google.com>
  Date:   2019-11-01 (Fri, 01 Nov 2019)

  Changed paths:
    M lld/COFF/Config.h
    M lld/COFF/Driver.cpp
    M lld/COFF/Writer.cpp
    M lld/test/COFF/long-section-name.test

  Log Message:
  -----------
  Warn when an output section name is longer than 8 characters

Recent versions of Microsoft's dumpbin tool cannot handle such PE files.
LLVM tools and GNU tools can, and use this to encode long section names
like ".debug_info", which is commonly used for DWARF. Don't do this in
mingw mode or when -debug:dwarf is passed, since the user probably wants
long section names for DWARF sections.

PR43754

Reviewers: ruiu, mstorsjo

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




More information about the All-commits mailing list