[PATCH] libiberty: sync with gcc

Sam James sam@gentoo.org
Fri Nov 22 15:46:39 GMT 2024


Tom Tromey <tom@tromey.com> writes:

>>>>>> "Sam" == Sam James <sam@gentoo.org> writes:
>
> Sam> This imports the following commits from GCC as of r15-5375-gbeec291225be9b:
> Sam> 	94bea5dd6c9a libiberity: ANSIfy test-demangle.c
> Sam> 	aa84020b2edb libiberty: Fix comment typos
> Sam> 	c1b2100e736c libiberty: Restore build with CP_DEMANGLE_DEBUG defined
> Sam> 	bb8dd0980b39 libiberty: Fix up > 64K section handling in simple_object_elf_copy_lto_debug_section [PR116614]
> Sam> ---
> Sam> OK? This primarily fixes a C23 issue in test-demangle.c.
>
> Thank you.  Please check this in.
> Approved-By: Tom Tromey <tom@tromey.com>

Thanks. I'm going to add this commit on top to catch another change
which went in later:

diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog
index 4a461602ac0..83e9120c444 100644
--- a/libiberty/ChangeLog
+++ b/libiberty/ChangeLog
@@ -1,3 +1,7 @@
+2024-11-19  Evgeny Karpov  <evgeny.karpov@microsoft.com>
+
+       * simple-object-coff.c: Add aarch64.
+
 2024-11-16  Andrew Pinski  <quic_apinski@quicinc.com>

        * testsuite/test-demangle.c (get_line): Change K&R style
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.  */
 
>
> Tom

thanks,
sam


More information about the Binutils mailing list