[PATCH] D24471: [ELF] Set EF_ARM_EABI_VER5 for ARM
Martin Storsjö via llvm-commits
llvm-commits at lists.llvm.org
Mon Sep 12 23:32:41 PDT 2016
mstorsjo added a comment.
In https://reviews.llvm.org/D24471#540754, @mstorsjo wrote:
> In https://reviews.llvm.org/D24471#540599, @emaste wrote:
>
> > > Without this flag set, an aarch64 kernel won't try to load the executable
> >
> >
> > Do you mean this is part of some ABI spec and so any aarch64 kernel should not load the executable, or that this is due to an implementation detail of (presumably) the Linux kernel?
>
>
> I think it's just an implementation detail. Since GNU ld has been setting it since forever (I assume), I guess the aarch64 kernel just hasn't bothered to add support for "legacy" binaries, only the ones commonly available.
http://git.kernel.org/cgit/linux/kernel/git/stable/linux-stable.git/tree/arch/arm64/include/asm/elf.h?h=v4.4.9&id=1a1a512b983108015ced1e7a7c7775cfeec42d8c#n176
So it seems like it doesn't matter much which EABI version is set, as long as any flag within EF_ARM_EABI_MASK is set.
https://reviews.llvm.org/D24471
More information about the llvm-commits
mailing list