[all-commits] [llvm/llvm-project] 2bf567: [yaml2obj] - Program headers: add an additional ch...

Georgii Rymar via All-commits all-commits at lists.llvm.org
Wed Apr 22 02:56:06 PDT 2020


  Branch: refs/heads/master
  Home:   https://github.com/llvm/llvm-project
  Commit: 2bf56743172c536b201a6f68b497694253236bd4
      https://github.com/llvm/llvm-project/commit/2bf56743172c536b201a6f68b497694253236bd4
  Author: Georgii Rymar <grimar at accesssoftek.com>
  Date:   2020-04-22 (Wed, 22 Apr 2020)

  Changed paths:
    M llvm/lib/ObjectYAML/ELFEmitter.cpp
    M llvm/test/Object/invalid.test
    M llvm/test/tools/llvm-objcopy/ELF/invalid-p_filesz-p_offset.test
    M llvm/test/tools/llvm-readobj/ELF/gnu-notes.test
    M llvm/test/tools/yaml2obj/ELF/program-header-size-offset.yaml

  Log Message:
  -----------
  [yaml2obj] - Program headers: add an additional check for `Offset`

The `Offset` field is used to set the file offset of a program header.
In a normal object it should not be greater than the minimal offset
of sections included into segment.

This patch adds a check for that and adds tests.

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




More information about the All-commits mailing list