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

Richard Earnshaw (lists) Richard.Earnshaw@arm.com
Fri Dec 6 17:37:53 GMT 2024


On 18/11/2024 11:15, Evgeny Karpov wrote:
> The patch adds aarch64 architecture to the list of supported COFF
> headers.
> 
> 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.  */

This should just be merged from the gcc version of the same change. There's no need for an additional approval here.

R.


More information about the Binutils mailing list