From: Indu Bhagat Date: Fri, 28 May 2021 00:10:56 +0000 (-0700) Subject: libiberty: copy over .BTF section when using LTO X-Git-Tag: basepoints/gcc-13~6458 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9c93f6cc952639b944ae9c459cc328a810622033;p=thirdparty%2Fgcc.git libiberty: copy over .BTF section when using LTO libiberty/ChangeLog: * simple-object.c (handle_lto_debug_sections): Copy over .BTF section. --- diff --git a/libiberty/simple-object.c b/libiberty/simple-object.c index 909995dd1661..facbf94fd09e 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; }