Description[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
Committed: https://chromium.googlesource.com/chromium/src/+/1cd95ec7f2d52a8152aec6c871b0e9a805eef1b6
Patch Set 1 #Patch Set 2 : rebase... for no apparent reason #
Messages
Total messages: 9 (5 generated)
|