summaryrefslogtreecommitdiffstats
path: root/llvm/test/Object/Inputs
diff options
context:
space:
mode:
authorGeorge Rimar <grimar@accesssoftek.com>2016-10-17 10:58:02 +0000
committerGeorge Rimar <grimar@accesssoftek.com>2016-10-17 10:58:02 +0000
commit65807f899b4616d3961e14e2cf4a7330eade19de (patch)
tree021df44e544a673956558d442d491b503ef81de4 /llvm/test/Object/Inputs
parent830a62aa3954ad1e924c42c1ac85e6b84b4973ae (diff)
downloadbcm5719-llvm-65807f899b4616d3961e14e2cf4a7330eade19de.tar.gz
bcm5719-llvm-65807f899b4616d3961e14e2cf4a7330eade19de.zip
Recommit r284371 "[Object/ELF] - Check that e_shnum is null when e_shoff is."
With fix: hex edited the precompiled inputs from another testcases to pass new checks. Original commit message: [Object/ELF] - Check that e_shnum is null when e_shoff is. Spec says (http://www.sco.com/developers/gabi/1998-04-29/ch4.eheader.html) : e_shnum This member holds the number of entries in the section header table. Thus the product of e_shentsize and e_shnum gives the section header table's size in bytes. If a file has no section header table, e_shnum holds the value zero. Revealed using "id_000037,sig_11,src_000015,op_havoc,rep_8" from PR30540 That was the reason of crash in lld on incorrect input file. Binary reduced using afl-min. Differential revision: https://reviews.llvm.org/D25090 llvm-svn: 284374
Diffstat (limited to 'llvm/test/Object/Inputs')
-rwxr-xr-xllvm/test/Object/Inputs/corrupt-invalid-strtab.elf.x86-64bin1712 -> 1712 bytes
-rw-r--r--llvm/test/Object/Inputs/invalid-e_shnum.elfbin0 -> 64 bytes
-rwxr-xr-xllvm/test/Object/Inputs/rel-no-sec-table.elf-x86-64bin2152 -> 2152 bytes
3 files changed, 0 insertions, 0 deletions
diff --git a/llvm/test/Object/Inputs/corrupt-invalid-strtab.elf.x86-64 b/llvm/test/Object/Inputs/corrupt-invalid-strtab.elf.x86-64
index bdaa3cf9208..ab9a63ea796 100755
--- a/llvm/test/Object/Inputs/corrupt-invalid-strtab.elf.x86-64
+++ b/llvm/test/Object/Inputs/corrupt-invalid-strtab.elf.x86-64
Binary files differ
diff --git a/llvm/test/Object/Inputs/invalid-e_shnum.elf b/llvm/test/Object/Inputs/invalid-e_shnum.elf
new file mode 100644
index 00000000000..0b46fbd8cec
--- /dev/null
+++ b/llvm/test/Object/Inputs/invalid-e_shnum.elf
Binary files differ
diff --git a/llvm/test/Object/Inputs/rel-no-sec-table.elf-x86-64 b/llvm/test/Object/Inputs/rel-no-sec-table.elf-x86-64
index d527305d659..33449c960dc 100755
--- a/llvm/test/Object/Inputs/rel-no-sec-table.elf-x86-64
+++ b/llvm/test/Object/Inputs/rel-no-sec-table.elf-x86-64
Binary files differ
OpenPOWER on IntegriCloud