HomePhabricator

[llvm-size] Output REL, RELA and STRTAB sections when allocatable

Authored by gbreynoo on Jul 1 2020, 3:57 AM.

Description

[llvm-size] Output REL, RELA and STRTAB sections when allocatable

gnu size has a number of special cases regarding REL, RELA and STRTAB
sections being considered in size output. To avoid unnecessary
complexity this commit makes llvm size outputs these sections in cases
they have the SHF_ALLOC flag.

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