summaryrefslogtreecommitdiffstats
path: root/courgette
diff options
context:
space:
mode:
authorWill Harris <wfh@chromium.org>2016-02-03 14:51:49 -0800
committerWill Harris <wfh@chromium.org>2016-02-03 22:54:15 +0000
commit1cd95ec7f2d52a8152aec6c871b0e9a805eef1b6 (patch)
tree85f9366b2ac2128ff49fbed7e2b0ba528dc2eb5d /courgette
parent332761c7f4da3aa451028a6a3d16aafd607b69be (diff)
downloadchromium_src-1cd95ec7f2d52a8152aec6c871b0e9a805eef1b6.zip
chromium_src-1cd95ec7f2d52a8152aec6c871b0e9a805eef1b6.tar.gz
chromium_src-1cd95ec7f2d52a8152aec6c871b0e9a805eef1b6.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 later. 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 R=huangs@chromium.org Review URL: https://codereview.chromium.org/1661723004 . Cr-Commit-Position: refs/heads/master@{#373372}
Diffstat (limited to 'courgette')
-rwxr-xr-xcourgette/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 100755
index 0000000..faa42f3
--- /dev/null
+++ b/courgette/testdata/elf-armv7
Binary files differ