Revert "[yaml2obj] - Allocate the file space for SHT_NOBITS sections in some cases."
authorGeorgii Rymar <grimar@accesssoftek.com>
Thu, 4 Jun 2020 10:10:43 +0000 (13:10 +0300)
committerGeorgii Rymar <grimar@accesssoftek.com>
Thu, 4 Jun 2020 10:17:48 +0000 (13:17 +0300)
commit5750f12b823448e3bb9f1fd6d896eab58d52df5b
tree116a38b8dc2121fcecf4b6833e16d1cae932b9f7
parent1b6cccba3ec1ab97688c8e0c1da3f8a5a7fa4d17
Revert "[yaml2obj] - Allocate the file space for SHT_NOBITS sections in some cases."

This reverts commit aa3a85cdaa4432ca389bdbf48049eaa64dc6e266.

There are problems with it. See here: https://reviews.llvm.org/D80629
llvm/lib/ObjectYAML/ELFEmitter.cpp
llvm/test/tools/llvm-objcopy/ELF/preserve-segment-contents.test
llvm/test/tools/yaml2obj/ELF/program-header-nobits.yaml