diff options
author | Georgii Rymar <grimar@accesssoftek.com> | 2020-04-16 16:41:28 +0300 |
---|---|---|
committer | Georgii Rymar <grimar@accesssoftek.com> | 2020-04-22 12:49:05 +0300 |
commit | 2bf56743172c536b201a6f68b497694253236bd4 (patch) | |
tree | ed562307c5ca5fc39b49e5ae0ba3a778e70c987f /llvm/lib/Support/StringRef.cpp | |
parent | 87d33d9e09c6b727e108c6cd86b36743740e08cc (diff) | |
download | llvm-2bf56743172c536b201a6f68b497694253236bd4.zip llvm-2bf56743172c536b201a6f68b497694253236bd4.tar.gz llvm-2bf56743172c536b201a6f68b497694253236bd4.tar.bz2 |
[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
Diffstat (limited to 'llvm/lib/Support/StringRef.cpp')
0 files changed, 0 insertions, 0 deletions