projects
/
platform
/
upstream
/
gcc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d5cf2b5
)
libiberty: copy over .BTF section when using LTO
author
Indu Bhagat
<indu.bhagat@oracle.com>
Fri, 28 May 2021 00:10:56 +0000
(17:10 -0700)
committer
Jose E. Marchesi
<jose.marchesi@oracle.com>
Mon, 28 Jun 2021 16:47:21 +0000
(18:47 +0200)
libiberty/ChangeLog:
* simple-object.c (handle_lto_debug_sections): Copy over .BTF section.
libiberty/simple-object.c
patch
|
blob
|
history
diff --git
a/libiberty/simple-object.c
b/libiberty/simple-object.c
index
909995d
..
facbf94
100644
(file)
--- a/
libiberty/simple-object.c
+++ b/
libiberty/simple-object.c
@@
-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;
}