HomePhabricator

[ELF] report section sizes when output file too large

Authored by inglorion on Jan 12 2021, 12:55 PM.

Description

[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

Details

Committed
inglorionJan 21 2021, 11:47 AM
Reviewer
MaskRay
Differential Revision
D94560: [ELF] report section sizes when output file too large
Parents
rG65fd034b95d6: [FunctionAttrs] Infer willreturn for functions without loops
Branches
Unknown
Tags
Unknown