public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r12-1855] libiberty: copy over .BTF section when using LTO
@ 2021-06-28 17:29 Jose E. Marchesi
0 siblings, 0 replies; only message in thread
From: Jose E. Marchesi @ 2021-06-28 17:29 UTC (permalink / raw)
To: gcc-cvs
https://gcc.gnu.org/g:9c93f6cc952639b944ae9c459cc328a810622033
commit r12-1855-g9c93f6cc952639b944ae9c459cc328a810622033
Author: Indu Bhagat <indu.bhagat@oracle.com>
Date: Thu May 27 17:10:56 2021 -0700
libiberty: copy over .BTF section when using LTO
libiberty/ChangeLog:
* simple-object.c (handle_lto_debug_sections): Copy over .BTF section.
Diff:
---
libiberty/simple-object.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/libiberty/simple-object.c b/libiberty/simple-object.c
index 909995dd166..facbf94fd09 100644
--- 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;
}
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2021-06-28 17:29 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-28 17:29 [gcc r12-1855] libiberty: copy over .BTF section when using LTO Jose E. Marchesi
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).