[all-commits] [llvm/llvm-project] 8e0b17: [ELF] report section sizes when output file too large

inglorion via All-commits all-commits at lists.llvm.org
Thu Jan 21 11:47:35 PST 2021


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 8e0b17931530e84f45586e31b58b031d6d68ee6c
      https://github.com/llvm/llvm-project/commit/8e0b17931530e84f45586e31b58b031d6d68ee6c
  Author: Bob Haarman <llvm at inglorion.net>
  Date:   2021-01-21 (Thu, 21 Jan 2021)

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

  Log Message:
  -----------
  [ELF] report section sizes when output file too large

Fixes PR48523. When the linker errors with "output file too large",
one question that comes to mind is how the section sizes differ from
what they were previously. Unfortunately, this information is lost
when the linker exits without writing the output file. This change
makes it so that the error message includes the sizes of the largest
sections.

Reviewed By: MaskRay, grimar, jhenderson

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




More information about the All-commits mailing list