[all-commits] [llvm/llvm-project] 818ab3: [yaml2obj] - Allocate the file space for SHT_NOBIT...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Thu Jun 11 03:07:43 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 818ab3d654e41f99e25b0f19b633f2233b619c77
      https://github.com/llvm/llvm-project/commit/818ab3d654e41f99e25b0f19b633f2233b619c77
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-06-11 (Thu, 11 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/obj2yaml/ELF/program-headers.yaml
    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