diff options
author | Indu Bhagat <indu.bhagat@oracle.com> | 2021-05-27 17:10:56 -0700 |
---|---|---|
committer | Jose E. Marchesi <jose.marchesi@oracle.com> | 2021-06-28 18:47:21 +0200 |
commit | 9c93f6cc952639b944ae9c459cc328a810622033 (patch) | |
tree | 8bcdbe9971a4f9b6a310efc97dc85c62d0a984bb /libiberty | |
parent | d5cf2b5db325fd5c053ca7bc8d6a54a06cd71124 (diff) | |
download | gcc-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.
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/simple-object.c | 3 |
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; } |