diff --git a/libiberty/simple-object.c b/libiberty/simple-object.c index 6742d3a75f4..a4992a2b181 100644 --- a/libiberty/simple-object.c +++ b/libiberty/simple-object.c @@ -310,6 +310,10 @@ handle_lto_debug_sections (const char *name, int rename) /* Copy over .BTF section under the same name if present. */ else if (strcmp (name, ".BTF") == 0) return strcpy (newname, name); + /* Copy over .ARM.attributes section under the same name if present. AArch64 + aeabi attributes are present in this section. */ + else if (strcmp (name, ".ARM.attributes") == 0) + return strcpy (newname, name); free (newname); return NULL; }