[PATCH] FreeBSD: Set the ARM EABI version when using an external assembler

Andrew Turner andrew at fubar.geek.nz
Sun Mar 17 12:12:10 PDT 2013


On Sun, 17 Mar 2013 12:41:51 +0000
Renato Golin <renato.golin at linaro.org> wrote:

> On 17 March 2013 12:28, Anton Korobeynikov <anton at korobeynikov.info>
> wrote:
> 
> > Are you sure? I saw cross-gcc forcing eabi value to 4 or 5 many
> > times. I do not recall why it was so (e.g. whether the compiler was
> > explicitly configured to do so).
> >
> 
> Ok, that's odd...
> 
> $ arm-linux-gnueabihf-gcc -c foo.c
> $ arm-linux-gnueabihf-readelf -h foo.o
> ELF Header:
>   (...)
>   ABI Version:                       0
>   (...)
>   Flags:                             0x5000000, Version5 EABI
> 
> Either readelf is being misled or that "ABI Version" field is just
> wrong...
> 
> As I said before, I think this change is harmless for now, just make
> sure you test EABI, too (or stick to GNUEABI only).

The ABI Version field is different. The patch is to set the Version5
EABI flag in the Flags field.

Andrew



More information about the cfe-commits mailing list