From 5dd21d43c6da1cd24f80131811158fada2fc8610 Mon Sep 17 00:00:00 2001 From: huangs Date: Tue, 2 Feb 2016 19:51:07 -0800 Subject: [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} --- courgette/testdata/elf-armv7 | Bin 0 -> 8427 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 courgette/testdata/elf-armv7 (limited to 'courgette') diff --git a/courgette/testdata/elf-armv7 b/courgette/testdata/elf-armv7 new file mode 100644 index 0000000..faa42f3 Binary files /dev/null and b/courgette/testdata/elf-armv7 differ -- cgit v1.1