Handle ARM relocations (#121)
authorFrederik Sdun <frederik_sdun@mentor.com>
Mon, 16 Jul 2018 13:22:55 +0000 (15:22 +0200)
committerEli Bendersky <eliben@users.noreply.github.com>
Mon, 16 Jul 2018 13:22:55 +0000 (06:22 -0700)
commitab76d5ca08c676fd861aa4f49fa63d89024b72ff
treea0a83831a25527068af12052b1158c5aa331b20e
parent0ef59f56ff0f1caf09653b412eba5a0c41e368fd
Handle ARM relocations (#121)

* relocation: handle ARM binaries

* relocation: handle R_ARM_ABS32 for ARM machines

* testfiles: add reloc_arm_gcc.o.elf

Generated on Ubuntu 14.04 using: arm-linux-gnueabi-gcc-4.7 -c -g -o reloc_armhf_gcc.o.elf hello.c

* testfiles: add reloc_armhf_gcc.o.elf

Generated on Ubuntu 14.04 using: arm-linux-gnueabihf-gcc-4.7 -c -g -o reloc_armhf_gcc.o.elf hello.c

* readelf: print soft-float abi for ARM if EF_ARM_ABI_FLOAT_SOFT in flags

* readelf: print hard-float abi for ARM if EF_ARM_ABI_FLOAT_HARD in flags

* readelf: print BE8 info for armeb binaries

* testfiles: add simple_armhf_gcc.o.elf

    Generated on Ubuntu 14.04 using: arm-linux-gnueabihf-gcc-4.7  -g -o simple_armhf_gcc.o.elf hello.c

* elf: remove unwind from dicts and set ARM_EXIDX description

* testfiles: add  reloc_armsf_gcc.o.elf as soft float testcase taken from binutils 2.30

* testfiles: add reloc_armeb_gcc.o.elf as arm big endian testcase taken from binutils 2.30 testcase arm-be8

* readelf: print endian info LE8 if flag was set in header flags
elftools/elf/descriptions.py
elftools/elf/relocation.py
scripts/readelf.py
test/testfiles_for_readelf/reloc_arm_gcc.o.elf [new file with mode: 0644]
test/testfiles_for_readelf/reloc_armhf_gcc.o.elf [new file with mode: 0644]
test/testfiles_for_readelf/reloc_armsf_gcc.o.elf [new file with mode: 0755]
test/testfiles_for_readelf/simple_armeb_gcc.o.elf [new file with mode: 0755]
test/testfiles_for_readelf/simple_armhf_gcc.o.elf [new file with mode: 0644]