libiberty: copy over .BTF section when using LTO

libiberty/ChangeLog:

	* simple-object.c (handle_lto_debug_sections): Copy over .BTF section.
This commit is contained in:
Indu Bhagat 2021-05-27 17:10:56 -07:00 committed by Jose E. Marchesi
parent d5cf2b5db3
commit 9c93f6cc95

View file

@ -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;
}