summaryrefslogtreecommitdiffstats
path: root/courgette
diff options
context:
space:
mode:
authorhuangs <huangs@chromium.org>2016-02-02 19:51:07 -0800
committerCommit bot <commit-bot@chromium.org>2016-02-03 03:52:29 +0000
commit5dd21d43c6da1cd24f80131811158fada2fc8610 (patch)
tree10a569ef61f75d194c763920e6e02dbfc284cb4d /courgette
parent6ebf9ce8cec335c07b863f9f7e209912d2159bcf (diff)
downloadchromium_src-5dd21d43c6da1cd24f80131811158fada2fc8610.zip
chromium_src-5dd21d43c6da1cd24f80131811158fada2fc8610.tar.gz
chromium_src-5dd21d43c6da1cd24f80131811158fada2fc8610.tar.bz2
[Courgette] Add ELF-ARM test binary.
Adding ELF ARM (v7) test binary that fails Courgette-dis. The binary has a non-code .bad section that if parsed, yields an invalid RVA that fails check latter. The commands to create the file are: echo -e 'int main(){return 0;}' | arm-linux-gnueabi-g++ -xc++ -march=armv7-a -mtune=generic-armv7-a - echo '00 20 00 0A 00 00 00 00' | xxd -r -p - bad_section arm-linux-gnueabihf-objcopy a.out elf-armv7 --add-section .bad=bad_section rm a.out bad_section The problematic code is 00000000: 00 20 00 0A => beq loc_00008008 The target RVA (00008008) is valid, but the site RVA (00000000) is bad. BUG=579206 NOPRESUBMIT=true Review URL: https://codereview.chromium.org/1662633002 Cr-Commit-Position: refs/heads/master@{#373162}
Diffstat (limited to 'courgette')
-rw-r--r--courgette/testdata/elf-armv7bin0 -> 8427 bytes
1 files changed, 0 insertions, 0 deletions
diff --git a/courgette/testdata/elf-armv7 b/courgette/testdata/elf-armv7
new file mode 100644
index 0000000..faa42f3
--- /dev/null
+++ b/courgette/testdata/elf-armv7
Binary files differ