[PATCH v1 2/3] aarch64: Add AArch64 support to libiberty

Andrew Pinski pinskia@gmail.com
Mon Aug 26 15:04:41 GMT 2024


On Mon, Aug 26, 2024 at 3:30 AM Evgeny Karpov
<Evgeny.Karpov@microsoft.com> wrote:
>
> The patch adds aarch64 architecture to the list of supported COFF
> headers.

The official libiberty source resides in the GCC source base.
That is this patch should be sent to gcc-patches@ first and the merged
into the binutils-gdb git once approved and pushed there.

Thanks,
Andrew


>
> libiberty/ChangeLog:
>
>         * simple-object-coff.c: Add AArch64.
> ---
>  libiberty/simple-object-coff.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/libiberty/simple-object-coff.c b/libiberty/simple-object-coff.c
> index e748205972f..fd3c310db51 100644
> --- a/libiberty/simple-object-coff.c
> +++ b/libiberty/simple-object-coff.c
> @@ -219,7 +219,9 @@ static const struct coff_magic_struct coff_magic[] =
>    /* i386.  */
>    { 0x14c, 0, F_EXEC | IMAGE_FILE_SYSTEM | IMAGE_FILE_DLL },
>    /* x86_64.  */
> -  { 0x8664, 0, F_EXEC | IMAGE_FILE_SYSTEM | IMAGE_FILE_DLL }
> +  { 0x8664, 0, F_EXEC | IMAGE_FILE_SYSTEM | IMAGE_FILE_DLL },
> +  /* AArch64.  */
> +  { 0xaa64, 0, F_EXEC | IMAGE_FILE_SYSTEM | IMAGE_FILE_DLL }
>  };
>
>  /* See if we have a COFF file.  */
> --
> 2.34.1
>


More information about the Binutils mailing list