]> git.ipfire.org Git - thirdparty/gcc.git/blobdiff - libiberty/simple-object.c
GCC: Check if AR works with --plugin and rc
[thirdparty/gcc.git] / libiberty / simple-object.c
index 909995dd1661545365c5cd725acf0b4ef8c17663..163e58a2f3bf0cdfad570600299501079666ebbf 100644 (file)
@@ -1,5 +1,5 @@
 /* simple-object.c -- simple routines to read and write object files.
-   Copyright (C) 2010-2021 Free Software Foundation, Inc.
+   Copyright (C) 2010-2023 Free Software Foundation, Inc.
    Written by Ian Lance Taylor, Google.
 
 This program is free software; you can redistribute it and/or modify it
@@ -307,6 +307,9 @@ handle_lto_debug_sections (const char *name, int rename)
   /* Copy over .ctf section under the same name if present.  */
   else if (strcmp (name, ".ctf") == 0)
     return strcpy (newname, name);
+  /* Copy over .BTF section under the same name if present.  */
+  else if (strcmp (name, ".BTF") == 0)
+    return strcpy (newname, name);
   free (newname);
   return NULL;
 }