public inbox for gcc-bugs@sourceware.org help / color / mirror / Atom feed
From: "cvs-commit at gcc dot gnu.org" <gcc-bugzilla@gcc.gnu.org> To: gcc-bugs@gcc.gnu.org Subject: [Bug target/106773] libbpf: failed to find BTF info for global/extern symbol 'bpf_link_fops' Date: Wed, 14 Dec 2022 18:25:52 +0000 [thread overview] Message-ID: <bug-106773-4-q5hSBrWbz9@http.gcc.gnu.org/bugzilla/> (raw) In-Reply-To: <bug-106773-4@http.gcc.gnu.org/bugzilla/> https://gcc.gnu.org/bugzilla/show_bug.cgi?id=106773 --- Comment #17 from CVS Commits <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by David Faust <dfaust@gcc.gnu.org>: https://gcc.gnu.org/g:2bce22e88e1c8486a0f2d42311506a8d3da20fb7 commit r13-4707-g2bce22e88e1c8486a0f2d42311506a8d3da20fb7 Author: David Faust <david.faust@oracle.com> Date: Wed Dec 7 11:44:28 2022 -0800 btf: add 'extern' linkage for variables [PR106773] Add support for the 'extern' linkage value for BTF_KIND_VAR records, which is used for variables declared as extern in the source file. This also fixes a bug with BTF generation for extern variables which have both a non-defining declaration and a defining declaration in the same CU. PR target/106773 gcc/ * btfout.cc (btf_collect_datasec): Mark extern variables as such. (btf_dvd_emit_preprocess_cb): Skip non-defining extern variable decl if there is a defining decl for the same variable. (btf_asm_varent): Accomodate 'extern' linkage. gcc/testsuite/ * gcc.dg/debug/btf/btf-variables-4.c: New test. * gcc.dg/debug/btf/btf-variables-5.c: New test. include/ * btf.h (enum btf_var_linkage): New. (struct btf_var): Update comment to note 'extern' linkage.
next prev parent reply other threads:[~2022-12-14 18:25 UTC|newest] Thread overview: 21+ messages / expand[flat|nested] mbox.gz Atom feed top 2022-08-29 22:07 [Bug c/106773] New: " james.hilliard1 at gmail dot com 2022-09-01 20:31 ` [Bug target/106773] " james.hilliard1 at gmail dot com 2022-09-01 22:33 ` james.hilliard1 at gmail dot com 2022-11-29 0:44 ` david.faust at oracle dot com 2022-11-30 21:20 ` david.faust at oracle dot com 2022-12-01 0:04 ` james.hilliard1 at gmail dot com 2022-12-01 0:12 ` james.hilliard1 at gmail dot com 2022-12-01 2:07 ` james.hilliard1 at gmail dot com 2022-12-01 17:09 ` david.faust at oracle dot com 2022-12-01 21:49 ` david.faust at oracle dot com 2022-12-01 22:09 ` james.hilliard1 at gmail dot com 2022-12-01 22:11 ` james.hilliard1 at gmail dot com 2022-12-01 22:30 ` james.hilliard1 at gmail dot com 2022-12-05 17:42 ` david.faust at oracle dot com 2022-12-05 19:01 ` james.hilliard1 at gmail dot com 2022-12-05 21:06 ` david.faust at oracle dot com 2022-12-05 21:57 ` james.hilliard1 at gmail dot com 2022-12-14 18:25 ` cvs-commit at gcc dot gnu.org [this message] 2022-12-14 18:25 ` cvs-commit at gcc dot gnu.org 2022-12-14 18:26 ` cvs-commit at gcc dot gnu.org 2023-01-06 14:18 ` jemarch at gcc dot gnu.org
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-106773-4-q5hSBrWbz9@http.gcc.gnu.org/bugzilla/ \ --to=gcc-bugzilla@gcc.gnu.org \ --cc=gcc-bugs@gcc.gnu.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
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).