[all-commits] [llvm/llvm-project] aa3a85: [yaml2obj] - Allocate the file space for SHT_NOBIT...
Georgii Rymar via All-commits
all-commits at lists.llvm.org
Tue Jun 2 07:19:52 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: aa3a85cdaa4432ca389bdbf48049eaa64dc6e266
https://github.com/llvm/llvm-project/commit/aa3a85cdaa4432ca389bdbf48049eaa64dc6e266
Author: Georgii Rymar <grimar at accesssoftek.com>
Date: 2020-06-02 (Tue, 02 Jun 2020)
Changed paths:
M llvm/lib/ObjectYAML/ELFEmitter.cpp
M llvm/test/tools/llvm-objcopy/ELF/preserve-segment-contents.test
M llvm/test/tools/yaml2obj/ELF/program-header-nobits.yaml
Log Message:
-----------
[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
More information about the All-commits
mailing list