HomePhabricator

[yaml2obj] - Allocate the file space for SHT_NOBITS sections in some cases.

Authored by grimar on Jun 10 2020, 5:28 AM.

Description

[yaml2obj] - Allocate the file space for SHT_NOBITS sections in some cases.

This teaches yaml2obj to allocate file space for a no-bits section
when there is a non-nobits section in the same segment that follows it.

It was discussed in D78005 thread and matches GNU linkers and LLD behavior.

Differential revision: https://reviews.llvm.org/D80629