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:
parent
d5cf2b5db3
commit
9c93f6cc95
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue