[all-commits] [llvm/llvm-project] eb4b5a: [ELF] Move --print-map(-M)/--cref before checkSect...

Fangrui Song via All-commits all-commits at lists.llvm.org
Thu Mar 12 08:00:25 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: eb4b5a36a6331a0de3559a01e6854895cacce6b3
      https://github.com/llvm/llvm-project/commit/eb4b5a36a6331a0de3559a01e6854895cacce6b3
  Author: Fangrui Song <maskray at google.com>
  Date:   2020-03-12 (Thu, 12 Mar 2020)

  Changed paths:
    M lld/ELF/Writer.cpp
    M lld/test/ELF/linkerscript/output-too-large.s

  Log Message:
  -----------
  [ELF] Move --print-map(-M)/--cref before checkSections() and openFile()

-M output can be useful when diagnosing an "error: output file too large" problem (emitted in openFile()).

I just ran into such a situation where I had to debug an erronerous
Linux kernel linker script. It tried to create a file larger than
INT64_MAX bytes.

This patch could have helped https://bugs.llvm.org/show_bug.cgi?id=44715 as well.

Reviewed By: grimar

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




More information about the All-commits mailing list