[ELF] Set EF_ARM_EABI_VER5 for ARM
authorRui Ueyama <ruiu@google.com>
Tue, 13 Sep 2016 20:51:32 +0000 (20:51 +0000)
committerRui Ueyama <ruiu@google.com>
Tue, 13 Sep 2016 20:51:32 +0000 (20:51 +0000)
commit1e2e8eae5d0c5fd4fc12477c1137d13502f7da5a
tree554d06f728c52440ffb1cb39fb4c0622a4ba6ca2
parentea26504c1947756913d348cce575a7bbac7874c3
[ELF] Set EF_ARM_EABI_VER5 for ARM

Without this flag set, an AArch64 Linux kernel won't try to load the executable
(even if a 32 bit arm kernel will run the binary just fine).

Patch by Martin Storsjö!

Differential revision: https://reviews.llvm.org/D24471

llvm-svn: 281394
lld/ELF/Writer.cpp
lld/test/ELF/arm-eabi-version.s [new file with mode: 0644]