diff options
author | huangs <huangs@chromium.org> | 2016-02-02 19:51:07 -0800 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-02-03 03:52:29 +0000 |
commit | 5dd21d43c6da1cd24f80131811158fada2fc8610 (patch) | |
tree | 10a569ef61f75d194c763920e6e02dbfc284cb4d /gin/fingerprint | |
parent | 6ebf9ce8cec335c07b863f9f7e209912d2159bcf (diff) | |
download | chromium_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 'gin/fingerprint')
0 files changed, 0 insertions, 0 deletions