aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIndu Bhagat <indu.bhagat@oracle.com>2021-05-27 17:10:56 -0700
committerJose E. Marchesi <jose.marchesi@oracle.com>2021-06-28 18:47:21 +0200
commit9c93f6cc952639b944ae9c459cc328a810622033 (patch)
tree8bcdbe9971a4f9b6a310efc97dc85c62d0a984bb
parentd5cf2b5db325fd5c053ca7bc8d6a54a06cd71124 (diff)
downloadgcc-9c93f6cc952639b944ae9c459cc328a810622033.zip
gcc-9c93f6cc952639b944ae9c459cc328a810622033.tar.gz
gcc-9c93f6cc952639b944ae9c459cc328a810622033.tar.bz2
libiberty: copy over .BTF section when using LTO
libiberty/ChangeLog: * simple-object.c (handle_lto_debug_sections): Copy over .BTF section.
-rw-r--r--libiberty/simple-object.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libiberty/simple-object.c b/libiberty/simple-object.c
index 909995d..facbf94f 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;
}