HomePhabricator

[ELF] Change default output section type to SHT_PROGBITS

Authored by andrewng on Apr 23 2019, 5:38 AM.

Description

[ELF] Change default output section type to SHT_PROGBITS

This fixes an issue where a symbol only section at the start of a
PT_LOAD segment, causes incorrect alignment of the file offset for the
start of the segment which results in the output of an invalid ELF.

SHT_PROGBITS was the default output section type in the past.

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

llvm-svn: 358981